Home
last modified time | relevance | path

Searched refs:ppn (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs172 let ppn = riscv::register::satp::read().ppn(); in table() localVariable
174 let paddr = PhysPageFrame::from_ppn(ppn).phys_address(); in table()
180 let ppn = PhysPageFrame::new(table).ppn(); in set_table() localVariable
182 satp::set(satp::Mode::Sv39, 0, ppn); in set_table()
246 let ppn = PhysPageFrame::new(paddr).ppn(); in make_entry() localVariable
247 let r = ((ppn & ((1 << 54) - 1)) << 10) | page_flags; in make_entry()
/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs29 pub fn from_ppn(ppn: usize) -> Self { in from_ppn()
30 return Self { number: ppn }; in from_ppn()
34 pub fn ppn(&self) -> usize { in ppn() method
/DragonOS/kernel/src/driver/firmware/efi/
H A Dinit.rs262 .ppn() in reserve_memory_regions()
263 - PhysPageFrame::new(PhysAddr::new(page_align_down(md.phys_start as usize))).ppn()) in reserve_memory_regions()
/DragonOS/kernel/src/mm/
H A Dpage.rs724 let ppn = ((self.data & (!((1 << 10) - 1))) >> 10) & ((1 << 54) - 1); in address() localVariable
725 super::allocator::page_frame::PhysPageFrame::from_ppn(ppn).phys_address() in address()