Lines Matching refs:VirtAddr
30 use crate::mm::{MemoryManagementArch, PageTableKind, PhysAddr, VirtAddr, VmFlags};
124 const USER_END_VADDR: VirtAddr =
125 VirtAddr::new((Self::PAGE_ADDRESS_SIZE >> 1) - Self::PAGE_SIZE);
126 const USER_BRK_START: VirtAddr = VirtAddr::new(0x700000000000);
127 const USER_STACK_START: VirtAddr = VirtAddr::new(0x6ffff0a00000);
129 const FIXMAP_START_VADDR: VirtAddr = VirtAddr::new(0xffffb00000000000);
133 const MMIO_BASE: VirtAddr = VirtAddr::new(0xffffa10000000000);
179 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page() argument
218 fn virt_is_valid(virt: VirtAddr) -> bool { in virt_is_valid()
286 unsafe fn read<T>(address: VirtAddr) -> T { in read()
290 unsafe fn write<T>(address: VirtAddr, value: T) { in write() argument
294 unsafe fn write_bytes(address: VirtAddr, value: u8, count: usize) { in write_bytes() argument
298 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt() argument
300 return Some(VirtAddr::new(vaddr)); in phys_2_virt()
306 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
444 impl VirtAddr { impl
456 let virt_offset = VirtAddr::new(page_align_up(BOOTSTRAP_MM_INFO.unwrap().start_brk)); in allocator_init()
677 pub unsafe fn kernel_page_flags<A: MemoryManagementArch>(virt: VirtAddr) -> EntryFlags<A> { in kernel_page_flags()
714 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in remap_at_low_address()
728 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in unmap_at_low_address()