paging: move paging from buddy.c into new file

This commit is contained in:
Michael Shaw 2023-11-15 15:29:09 -05:00
commit fdb319e96b
4 changed files with 356 additions and 229 deletions

View file

@ -8,13 +8,13 @@
#define BBMAP_SPLIT 1
#define BBMAP_USED 2
#define PAGE_XD (1 << 64)
#define PAGE_PRESENT (1 << 0)
#define PAGE_RW (1 << 1)
#define PAGE_PWT (1 << 3)
#define PAGE_PCD (1 << 4)
#define PAGE_GLOBAL (1 << 8)
#define PAGE_USERMODE (1 << 2)
#define PAGE_PRESENT 0x1
#define PAGE_RW 0x2
#define PAGE_USERMODE 0x4
#define PAGE_XD 0x8000000000000000
#define PAGE_PWT 0x8
#define PAGE_PCD 0x10
#ifndef __ASM__