new: 初步实现了mmio的伙伴系统

This commit is contained in:
fslongjin
2022-08-18 22:06:29 +08:00
parent 4950d43e65
commit 77633e2f19
9 changed files with 384 additions and 5 deletions

View File

@ -13,6 +13,8 @@
#define PAGE_OFFSET (0xffff800000000000UL)
#define KERNEL_BASE_LINEAR_ADDR (0xffff800000000000UL)
#define USER_MAX_LINEAR_ADDR 0x00007fffffffffffUL
#define MMIO_BASE (0xffffa10000000000UL)
#define MMIO_TOP (0xffffa20000000000UL)
#define PAGE_4K_SHIFT 12
#define PAGE_2M_SHIFT 21