mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Implement an efficient ranged page table
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c9cfb98746
commit
24a868a670
@ -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),
|
||||
|
Reference in New Issue
Block a user