Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/
H A Dno_init.rs23 PageTableKind, VirtAddr,
171 PageTableKind::Kernel, in pseudo_map_phys_with_flags()
172 MMArch::table(PageTableKind::Kernel), in pseudo_map_phys_with_flags()
199 PageTableKind::Kernel, in pseudo_unmap_phys()
200 MMArch::table(PageTableKind::Kernel), in pseudo_unmap_phys()
H A Dkernel_mapper.rs3 use super::{page::EntryFlags, PageTableKind, PhysAddr, VirtAddr};
68 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock()
H A Dmod.rs147 pub enum PageTableKind { enum
298 pub fn kind(&self) -> PageTableKind { in kind() argument
300 return PageTableKind::User; in kind()
302 return PageTableKind::Kernel; in kind()
576 unsafe fn table(table_kind: PageTableKind) -> PhysAddr; in table()
579 unsafe fn set_table(table_kind: PageTableKind, table: PhysAddr); in set_table() argument
H A Dpage.rs35 MemoryManagementArch, PageTableKind, PhysAddr, VirtAddr,
493 pub unsafe fn top_level_table(table_kind: PageTableKind) -> Self { in top_level_table()
1099 table_kind: PageTableKind,
1118 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() argument
1128 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create() argument
1138 pub unsafe fn current(table_kind: PageTableKind, allocator: F) -> Self { in current() argument
1247 EntryFlags::new_page_table(virt.kind() == PageTableKind::User); in map_phys()
1330 EntryFlags::new_page_table(virt.kind() == PageTableKind::User); in allocate_table()
H A Ducontext.rs40 MemoryManagementArch, PageTableKind, VirtAddr, VirtRegion, VmFlags,
836 unsafe { MMArch::set_table(PageTableKind::User, MMArch::initial_page_table()) } in drop()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs30 use crate::mm::{MemoryManagementArch, PageTableKind, PhysAddr, VirtAddr, VmFlags};
189 Self::set_table(PageTableKind::User, Self::table(PageTableKind::User)); in invalidate_all()
194 unsafe fn table(table_kind: PageTableKind) -> PhysAddr { in table()
196 PageTableKind::Kernel | PageTableKind::User => { in table()
202 PageTableKind::EPT => { in table()
211 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() argument
236 PageMapper::create(PageTableKind::User, LockedFrameAllocator) in setup_new_usermapper()
472 let _old_page_table = MMArch::table(PageTableKind::Kernel); in allocator_init()
480 PageTableKind::Kernel, in allocator_init()
540 PageTableKind::Kernel, in allocator_init()
H A Dfault.rs76 unsafe { PageMapper::current(crate::mm::PageTableKind::User, LockedFrameAllocator) }; in show_fault_oops()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dinit.rs21 MemoryManagementArch, PageTableKind, PhysAddr, VirtAddr,
76 let _old_page_table = MMArch::table(PageTableKind::Kernel); in riscv_mm_init()
85 PageTableKind::Kernel, in riscv_mm_init()
148 PageTableKind::Kernel, in riscv_mm_init()
H A Dmod.rs17 MemoryManagementArch, PageTableKind, PhysAddr, VirtAddr, VmFlags,
170 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table()
179 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() argument
195 PageMapper::create(PageTableKind::User, LockedFrameAllocator) in setup_new_usermapper()
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dept.rs5 use crate::mm::{PageTableKind, PhysAddr, VirtAddr};
75 let mapper = unsafe { PageMapper::current(PageTableKind::EPT, LockedFrameAllocator) }; in lock()
H A Dvcpu.rs13 use crate::mm::{MemoryManagementArch, PageTableKind};
397 PageMapper::create(PageTableKind::EPT, LockedFrameAllocator) in kvm_mmu_load()
/DragonOS/kernel/src/mm/allocator/
H A Dbump.rs12 MemoryManagementArch, PageTableKind, PhysAddr, PhysMemoryArea,
112 PageMapper::<MMA, _>::current(PageTableKind::Kernel, BumpAllocator::<MMA>::new(0)); in ensure_early_mapping()