Microdragon / Kernel

A microkernel written in Rust
Mozilla Public License 2.0
0 stars 1 forks source link

Use magic methods for getting and settings the root page table #4

Closed Rain336 closed 10 months ago

Rain336 commented 10 months ago

This PR adds two magic methods get_root_page_table and set_root_page_table for getting and setting the physical address of the root page table. These methods are used by KMM during setup and are implemented by PI. This way KMM no longer needs to implement architecture-specific functions to do this.

Additionally, some smaller changes where made in this PR: