19 lines
306 B
C
19 lines
306 B
C
#ifndef VMM_VMM_H_
|
|
#define VMM_VMM_H_
|
|
|
|
#include <stddef.h>
|
|
#include "spinlock/spinlock.h"
|
|
#include "bootinfo/bootinfo.h"
|
|
|
|
typedef struct {
|
|
SpinLock spinlock;
|
|
} VirtMem;
|
|
|
|
extern VirtMem VIRT_MEM;
|
|
|
|
void vmm_init(void);
|
|
|
|
#define VIRT(X) ((void *)(BOOT_INFO.hhdm_off + (uint64_t)(X)))
|
|
|
|
#endif // VMM_VMM_H_
|