mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
Kernel/riscv64: Add MMU initialization code
We initialize the MMU by first setting up the page tables for the kernel image and the initial kernel stack. Then we jump to a identity mapped page which makes the newly created kernel root page table active by setting `satp` and then jumps to `init`.
This commit is contained in:
parent
27860cfaa2
commit
da33e2a564
4 changed files with 276 additions and 3 deletions
|
@ -523,6 +523,7 @@ elseif("${SERENITY_ARCH}" STREQUAL "riscv64")
|
|||
Arch/riscv64/Delay.cpp
|
||||
Arch/riscv64/InterruptManagement.cpp
|
||||
Arch/riscv64/Interrupts.cpp
|
||||
Arch/riscv64/MMU.cpp
|
||||
Arch/riscv64/PageDirectory.cpp
|
||||
Arch/riscv64/Panic.cpp
|
||||
Arch/riscv64/PCI/Initializer.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue