I don't even know what to write at this point
This commit is contained in:
parent
df0ebbbbcd
commit
72a46bc7ce
12 changed files with 235 additions and 96 deletions
|
@ -20,6 +20,17 @@
|
|||
#ifndef _MM_PAGING_H
|
||||
#define _MM_PAGING_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define PAGE_SIZE 0x1000
|
||||
|
||||
#define VMM_PRESENT 1
|
||||
#define VMM_WRITABLE 2
|
||||
#define VMM_NX (1ull << 63)
|
||||
#define VMM_USER 4
|
||||
|
||||
typedef struct {
|
||||
uint64_t entries[512];
|
||||
} pagetable;
|
||||
|
||||
#endif /* _MM_PAGING_H */
|
Loading…
Add table
Add a link
Reference in a new issue