Home
last modified time | relevance | path

Searched refs:PageEntry (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs103 pub unsafe fn entry(&self, i: usize) -> Option<PageEntry<Arch>> { in entry()
105 return Some(PageEntry::new(Arch::read::<usize>(entry_virt))); in entry()
109 pub unsafe fn set_entry(&self, i: usize, entry: PageEntry<Arch>) -> Option<()> { in set_entry()
168 pub struct PageEntry<Arch> { struct
173 impl<Arch> Debug for PageEntry<Arch> { implementation
179 impl<Arch: MemoryManagementArch> PageEntry<Arch> { impl
577 let entry = PageEntry::new(phys.data() | flags.data()); in map_phys()
619 table.set_entry(i, PageEntry::new(frame.data() | flags.data())); in map_phys()
675 let entry: PageEntry<Arch> = self.visit(virt, |p1, i| unsafe { p1.entry(i) })??; in translate()
767 table.set_entry(i, PageEntry::new(0)); in unmap_phys_inner()
[all …]
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs25 use crate::mm::page::{PageEntry, PageFlags};
212 let entry: PageEntry<X86_64MMArch> = current_ktable in setup_new_usermapper()
356 let empty_entry = PageEntry::<MMArch>::new(0); in allocator_init()