Home
last modified time | relevance | path

Searched refs:PHYS_OFFSET (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs83 const KERNEL_TOP_PAGE_ENTRY_NO: usize = (RiscV64MMArch::PHYS_OFFSET
129 const PHYS_OFFSET: usize = 0xffff_ffc0_0000_0000; constant
224 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt()
237 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
331 let x = self.data() & RiscV64MMArch::PHYS_OFFSET; in is_canonical()
334 return x == 0 || x == RiscV64MMArch::PHYS_OFFSET; in is_canonical()
/DragonOS/kernel/src/mm/
H A Dmod.rs485 const PHYS_OFFSET: usize; constant
490 const KERNEL_VIRT_START: usize = Self::PHYS_OFFSET + Self::KERNEL_LINK_OFFSET;
512 const PAGE_KERNEL_INDEX: usize = (Self::PHYS_OFFSET & Self::PAGE_ADDRESS_MASK)
588 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt()
606 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs120 const PHYS_OFFSET: usize = Self::PAGE_NEGATIVE_MASK + (Self::PAGE_ADDRESS_SIZE >> 1); constant
275 const PAGE_KERNEL_INDEX: usize = (Self::PHYS_OFFSET & Self::PAGE_ADDRESS_MASK)
299 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt()
307 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
448 let x = self.data() & X86_64MMArch::PHYS_OFFSET; in is_canonical()
451 return x == 0 || x == X86_64MMArch::PHYS_OFFSET; in is_canonical()