Closed wangrunji0408 closed 5 years ago
The current code structure is confusing! The recursive mapping is really hard to understand and make the code more complicated.
BlogOS has replaced recursive mapping by linear mapping all physical memory. See discussions here: https://github.com/phil-opp/blog_os/issues/545.
Some ideas:
Deprecate InactivePageTable and only access ActivePageTable
InactivePageTable
ActivePageTable
remap_the_kernel
MemorySet
&'static mut ActivePageTable
Move arch-specific page table implementation to memory crate
@miskcoo is doing similar work on mipsel platform. Maybe he will be interested.
The current code structure is confusing! The recursive mapping is really hard to understand and make the code more complicated.
BlogOS has replaced recursive mapping by linear mapping all physical memory. See discussions here: https://github.com/phil-opp/blog_os/issues/545.
Some ideas:
Deprecate
InactivePageTable
and only accessActivePageTable
remap_the_kernel
from kernel.MemorySet
owns&'static mut ActivePageTable
Move arch-specific page table implementation to memory crate