Lines Matching refs:new
27 pub(super) static mut INITIAL_PGTABLE_VALUE: PhysAddr = PhysAddr::new(0);
53 KERNEL_BEGIN_PA = PhysAddr::new(start_pa); in init_kernel_addr()
54 KERNEL_END_PA = PhysAddr::new(end_pa); in init_kernel_addr()
56 KERNEL_BEGIN_VA = VirtAddr::new(boot_text_start_pa as usize); in init_kernel_addr()
57 KERNEL_END_VA = VirtAddr::new(_end as usize); in init_kernel_addr()
75 let mut bump_allocator = BumpAllocator::<RiscV64MMArch>::new(0); in riscv_mm_init()
134 let buddy_allocator = unsafe { BuddyAllocator::<MMArch>::new(bump_allocator).unwrap() }; in riscv_mm_init()
147 let mapper = crate::mm::page::PageMapper::<MMArch, _>::new( in riscv_mm_init()
164 static FLAG: AtomicBool = AtomicBool::new(false); in set_inner_allocator()
184 let base = PhysAddr::new(info.paddr as usize); in remap_at_low_address()
188 let paddr = PhysAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
189 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address()
206 let base = PhysAddr::new(info.paddr as usize); in unmap_at_low_address()
210 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in unmap_at_low_address()