mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +00:00
Kernel/aarch64: Change base address of the kernel to 0x2000000000
This is the same address that the x86_64 kernel runs at, and allows us to run the kernel at a high virtual memory address. Since we now run completely in high virtual memory, we can also unmap the identity mapping. Additionally some changes in MMU.cpp are required to successfully boot.
This commit is contained in:
parent
3bc122fcef
commit
c4a3af12fc
4 changed files with 29 additions and 16 deletions
|
@ -18,7 +18,8 @@
|
|||
#define KERNEL_MAPPING_BASE 0x2000000000
|
||||
|
||||
#define KERNEL_PD_END (kernel_mapping_base + KERNEL_PD_SIZE)
|
||||
#define KERNEL_PT1024_BASE (kernel_mapping_base + 0x3FE00000)
|
||||
#define KERNEL_PT1024_OFFSET 0x3FE00000
|
||||
#define KERNEL_PT1024_BASE (kernel_mapping_base + KERNEL_PT1024_OFFSET)
|
||||
|
||||
#define KERNEL_MAX_CPU_COUNT 64
|
||||
#define KERNEL_QUICKMAP_PT_PER_CPU_BASE (KERNEL_PT1024_BASE + (1 * KERNEL_MAX_CPU_COUNT * PAGE_SIZE))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue