Searched refs:mapper (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.8/kernel/src/mm/ |
D | kernel_mapper.rs | 29 mapper: PageMapper, field 35 fn lock_cpu(cpuid: usize, mapper: PageMapper) -> Self { in lock_cpu() 57 return Self { mapper, readonly }; in lock_cpu() 64 let mapper = unsafe { PageMapper::current(PageTableKind::Kernel, LockedFrameAllocator) }; in lock() localVariable 65 return Self::lock_cpu(cpuid, mapper); in lock() 74 return Some(&mut self.mapper); in as_mut() 81 return &self.mapper; in as_ref() 114 let flusher = self.mapper.map_phys(vaddr, paddr, flags).unwrap(); in map_phys_with_size()
|
D | no_init.rs | 63 let mut mapper = crate::mm::page::PageMapper::<MMArch, _>::new( in pseudo_map_phys() localVariable 74 let flusher = mapper.map_phys(vaddr, paddr, flags).unwrap(); in pseudo_map_phys() 78 mapper.make_current(); in pseudo_map_phys()
|
D | ucontext.rs | 270 move |page, count, flags, mapper, flusher| { in map_anonymous() 271 Ok(VMA::zeroed(page, count, flags, mapper, flusher)?) in map_anonymous() 423 let mapper = &mut self.user_mapper.utable; in mprotect() localVariable 458 r_guard.remap(new_flags, mapper, &mut flusher)?; in mprotect() 825 mapper: &mut PageMapper, in remap() 834 mapper in remap() 844 pub fn unmap(&self, mapper: &mut PageMapper, mut flusher: impl Flusher<MMArch>) { in unmap() 850 let (paddr, _, flush) = unsafe { mapper.unmap_phys(page.virt_address(), true) } in unmap() 990 mapper: &mut PageMapper, in remap() 999 mapper in remap() [all …]
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 344 let mut mapper: crate::mm::page::PageMapper<MMArch, &mut BumpAllocator<MMArch>> = in allocator_init() localVariable 350 new_page_table = mapper.table().phys(); in allocator_init() 355 let table = mapper.table(); in allocator_init() 372 let flusher = mapper in allocator_init() 381 LowAddressRemapping::remap_at_low_address(&mut mapper); in allocator_init() 408 let mapper = crate::mm::page::PageMapper::<MMArch, _>::new( in allocator_init() localVariable 414 mapper.make_current(); in allocator_init() 592 mapper: &mut crate::mm::page::PageMapper<MMArch, &mut BumpAllocator<MMArch>>, in remap_at_low_address() 599 let flusher = mapper in remap_at_low_address() 609 let mut mapper = KernelMapper::lock(); in unmap_at_low_address() localVariable [all …]
|