Kernel: Remove some more hardcoded addresses

This commit is contained in:
Gunnar Beutner 2021-07-16 22:29:54 +02:00 committed by Andreas Kling
parent 7c3bfde8fd
commit 679ae6af81

View file

@ -13,11 +13,15 @@
#define KERNEL_BASE 0xC0000000
#define KERNEL_PD_OFFSET 0x3000000
#define KERNEL_PD_END 0xF1000000
#define KERNEL_PT1024_BASE 0xFFE00000
#define KERNEL_PD_END (KERNEL_BASE + 0x31000000)
#define KERNEL_PT1024_BASE (KERNEL_BASE + 0x3FE00000)
#define KERNEL_QUICKMAP_PT (KERNEL_PT1024_BASE + 0x6000)
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
#define KERNEL_PHYSICAL_PAGES_BASE (KERNEL_BASE + KERNEL_PD_OFFSET)
#ifdef __cplusplus
static_assert(KERNEL_BASE % 0x1000000 == 0);
#endif
#define USER_RANGE_CEILING 0xBE000000