Closed wangrunji0408 closed 5 years ago
Still one problem remains: #[repr(align(64)]] does not work with rv64.
RV32+64 is ready now.
I believe it is now feasible to merge these commits
Then aarch64 is broken. 😂 @equation314 Could you help fix linear mapping on aarch64?
OK, I will try to work in it this week...
Motivation
The current page table use recursive mapping to access itself and do not have a linear mapping to all physical memory.
This mechanism follows BlogOS. It worked well at the beginning.
But we found several limitations as our OS grows:
Almost everyone agrees that linear mapping is a better choice.
Changes
InactivePageTable
andPageTable
trait.phys_to_virt
function.Progress