Home
last modified time | relevance | path

Searched refs:PageTableKind (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dno_init.rs17 PageTableKind, VirtAddr,
64 PageTableKind::Kernel, in pseudo_map_phys()
65 MMArch::table(PageTableKind::Kernel), in pseudo_map_phys()
Dkernel_mapper.rs1 use super::{page::PageFlags, PageTableKind, PhysAddr, VirtAddr};
64 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
Dmod.rs75 pub enum PageTableKind { enum
206 pub fn kind(&self) -> PageTableKind { in kind() argument
208 return PageTableKind::User; in kind()
210 return PageTableKind::Kernel; in kind()
415 unsafe fn table(table_kind: PageTableKind) -> PhysAddr; in table()
418 unsafe fn set_table(table_kind: PageTableKind, table: PhysAddr); in set_table() argument
Dpage.rs16 allocator::page_frame::FrameAllocator, syscall::ProtFlags, MemoryManagementArch, PageTableKind,
51 pub unsafe fn top_level_table(table_kind: PageTableKind) -> Self { in top_level_table()
466 table_kind: PageTableKind,
485 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() argument
495 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create() argument
505 pub unsafe fn current(table_kind: PageTableKind, allocator: F) -> Self { in current() argument
614 PageFlags::new_page_table(virt.kind() == PageTableKind::User); in map_phys()
Ducontext.rs35 MemoryManagementArch, PageTableKind, VirtAddr, VirtRegion,
572 unsafe { MMArch::set_table(PageTableKind::User, MMArch::initial_page_table()) } in drop()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs26 use crate::mm::{MemoryManagementArch, PageTableKind, PhysAddr, PhysMemoryArea, VirtAddr};
167 Self::set_table(PageTableKind::User, Self::table(PageTableKind::User)); in invalidate_all()
172 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table()
181 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() argument
206 PageMapper::create(PageTableKind::User, LockedFrameAllocator) in setup_new_usermapper()
338 let _old_page_table = MMArch::table(PageTableKind::Kernel); in allocator_init()
346 PageTableKind::Kernel, in allocator_init()
409 PageTableKind::Kernel, in allocator_init()