Lines Matching refs:MMArch

11         MMArch,
74 let _old_page_table = MMArch::table(PageTableKind::Kernel); in riscv_mm_init()
81 let mut mapper: crate::mm::page::PageMapper<MMArch, &mut BumpAllocator<MMArch>> = in riscv_mm_init()
82 crate::mm::page::PageMapper::<MMArch, _>::create( in riscv_mm_init()
93 let empty_entry = PageEntry::<MMArch>::from_usize(0); in riscv_mm_init()
94 for i in 0..MMArch::PAGE_ENTRY_NUM { in riscv_mm_init()
106 for i in 0..((area.size + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE) { in riscv_mm_init()
107 let paddr = area.base.add(i * MMArch::PAGE_SIZE); in riscv_mm_init()
108 let vaddr = unsafe { MMArch::phys_2_virt(paddr) }.unwrap(); in riscv_mm_init()
109 let flags = kernel_page_flags::<MMArch>(vaddr).set_execute(true); in riscv_mm_init()
132 let buddy_allocator = unsafe { BuddyAllocator::<MMArch>::new(bump_allocator).unwrap() }; in riscv_mm_init()
145 let mapper = crate::mm::page::PageMapper::<MMArch, _>::new( in riscv_mm_init()
161 unsafe fn set_inner_allocator(allocator: BuddyAllocator<MMArch>) { in set_inner_allocator() argument
179 mapper: &mut crate::mm::page::PageMapper<MMArch, &mut BumpAllocator<MMArch>>, in remap_at_low_address() argument
185 for i in 0..(size / MMArch::PAGE_SIZE) { in remap_at_low_address()
186 let paddr = PhysAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
187 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
188 let flags = kernel_page_flags::<MMArch>(vaddr).set_execute(true); in remap_at_low_address()
207 for i in 0..(size / MMArch::PAGE_SIZE) { in unmap_at_low_address()
208 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in unmap_at_low_address()