kv2: initialize memory manager, early pci devices

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2026-05-12 02:59:37 -04:00
commit a252a3f8e9
58 changed files with 1270 additions and 505 deletions

View file

@ -7,8 +7,7 @@
#define PAGE_SIZE 0x1000ull
#define PAGE_MASK (~(PAGE_SIZE - 1))
#define PAGE_ALIGN (~(PAGE_SIZE - 1))
#define PAGE_ALIGN (PAGE_SIZE - 1)
#define PAGE_PRESENT 0x001
#define PAGE_RW 0x002
@ -17,7 +16,7 @@
#define PAGE_CACHE_DISABLE 0x010
#define PAGE_ACCESSED 0x020
#define PAGE_DIRTY 0x040
#define PAGE_4MB_ENABLE 0x080
#define PAGE_PS 0x080
#define pgd_index(address) (((address) >> 39) & 0x1FF)
#define pud_index(address) (((address) >> 30) & 0x1FF)