mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Kernel: Remove some more hardcoded addresses
This commit is contained in:
parent
7c3bfde8fd
commit
679ae6af81
Notes:
sideshowbarker
2024-07-18 08:48:52 +09:00
Author: https://github.com/gunnarbeutner
Commit: 679ae6af81
Pull-request: https://github.com/SerenityOS/serenity/pull/8795
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 6 additions and 2 deletions
|
@ -13,11 +13,15 @@
|
||||||
|
|
||||||
#define KERNEL_BASE 0xC0000000
|
#define KERNEL_BASE 0xC0000000
|
||||||
#define KERNEL_PD_OFFSET 0x3000000
|
#define KERNEL_PD_OFFSET 0x3000000
|
||||||
#define KERNEL_PD_END 0xF1000000
|
#define KERNEL_PD_END (KERNEL_BASE + 0x31000000)
|
||||||
#define KERNEL_PT1024_BASE 0xFFE00000
|
#define KERNEL_PT1024_BASE (KERNEL_BASE + 0x3FE00000)
|
||||||
#define KERNEL_QUICKMAP_PT (KERNEL_PT1024_BASE + 0x6000)
|
#define KERNEL_QUICKMAP_PT (KERNEL_PT1024_BASE + 0x6000)
|
||||||
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
|
#define KERNEL_QUICKMAP_PD (KERNEL_PT1024_BASE + 0x7000)
|
||||||
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
|
#define KERNEL_QUICKMAP_PER_CPU_BASE (KERNEL_PT1024_BASE + 0x8000)
|
||||||
#define KERNEL_PHYSICAL_PAGES_BASE (KERNEL_BASE + KERNEL_PD_OFFSET)
|
#define KERNEL_PHYSICAL_PAGES_BASE (KERNEL_BASE + KERNEL_PD_OFFSET)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
static_assert(KERNEL_BASE % 0x1000000 == 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USER_RANGE_CEILING 0xBE000000
|
#define USER_RANGE_CEILING 0xBE000000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue