Implement an efficient ranged page table

This commit is contained in:
Zhang Junyang
2024-03-25 13:25:32 +08:00
committed by Tate, Hongliang Tian
parent c9cfb98746
commit 24a868a670
25 changed files with 1540 additions and 964 deletions

View File

@ -61,7 +61,7 @@ impl HasPaddr for IoMem {
impl IoMem {
/// # Safety
///
/// User must ensure the range is in the I/O memory region.
/// User must ensure the given physical range is in the I/O memory region.
pub(crate) unsafe fn new(range: Range<Paddr>) -> IoMem {
IoMem {
virtual_address: paddr_to_vaddr(range.start),