Searched refs:ppn (Results 1 – 7 of 7) sorted by relevance
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_vm_translation_map.cpp | 54 page_num_t ppn = get_free_page(args); in LookupPte() local 55 if (ppn == 0) in LookupPte() 57 memset((Pte*)VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE); in LookupPte() 61 .ppn = ppn in LookupPte() 65 pte = (Pte*)VirtFromPhys(B_PAGE_SIZE * pte->ppn); in LookupPte() 85 .ppn = physAdr / B_PAGE_SIZE in Map() 133 sPageTable = SatpReg{.val = Satp()}.ppn * B_PAGE_SIZE; in arch_vm_translation_map_init()
|
H A D | arch_vm.cpp | 43 pte = (Pte*)VirtFromPhys(B_PAGE_SIZE * pte->ppn); in LookupPte() 149 DumpPageTableInt((Pte*)VirtFromPhys(B_PAGE_SIZE*pte[i].ppn), in DumpPageTableInt() 155 pte[i].ppn * B_PAGE_SIZE, 1 << (pageBits + pteIdxBits * level), in DumpPageTableInt() 212 Pte* root = (Pte*)VirtFromPhys(satp.ppn * B_PAGE_SIZE); in DumpPageTable() 216 Pte* pte = LookupPte(satp.ppn * B_PAGE_SIZE, base); in DumpPageTable() 220 dumper.Write(base, pte->ppn * B_PAGE_SIZE, B_PAGE_SIZE, pte->val & 0xff); in DumpPageTable() 260 Pte* pte = LookupPte(satp.ppn * B_PAGE_SIZE, virt); in DumpVirtPage() 267 dumper.Write(virt, pte->ppn * B_PAGE_SIZE, B_PAGE_SIZE, pte->val & 0xff); in DumpVirtPage()
|
H A D | RISCV64VMTranslationMap.cpp | 38 FreePageTable(page_num_t ppn, bool isKernel, uint32 level = 2) in FreePageTable() argument 41 Pte* pte = (Pte*)VirtFromPhys(ppn * B_PAGE_SIZE); in FreePageTable() 50 FreePageTable(pte[i].ppn, isKernel, level - 1); in FreePageTable() 53 vm_page* page = vm_lookup_page(ppn); in FreePageTable() 60 GetPageTableSize(page_num_t ppn, bool isKernel, uint32 level = 2) in GetPageTableSize() argument 62 if (ppn == 0) in GetPageTableSize() 69 Pte* pte = (Pte*)VirtFromPhys(ppn * B_PAGE_SIZE); in GetPageTableSize() 78 size += GetPageTableSize(pte[i].ppn, isKernel, level - 1); in GetPageTableSize() 111 pte->ppn = kernelPageTable[i].ppn; in LookupPte() 124 page_num_t ppn = page->physical_page_number; in LookupPte() local [all …]
|
H A D | RISCV64VMTranslationMap.h | 127 satp.ppn = fPageTable / B_PAGE_SIZE; in Satp()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | mmu.cpp | 145 uint64 ppn = AllocPhysPage() / B_PAGE_SIZE; in LookupPte() local 146 if (ppn == 0) in LookupPte() 148 memset((Pte*)VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE); in LookupPte() 152 .ppn = ppn in LookupPte() 156 pte = (Pte*)VirtFromPhys(B_PAGE_SIZE * pte->ppn); in LookupPte() 176 .ppn = physAdr / B_PAGE_SIZE in Map() 229 uint64 ppn = AllocPhysPage() / B_PAGE_SIZE; in PreallocKernelRange() local 230 if (ppn == 0) panic("can't alloc early physical page"); in PreallocKernelRange() 231 memset(VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE); in PreallocKernelRange() 235 .ppn = ppn in PreallocKernelRange() [all …]
|
/haiku/src/system/boot/platform/efi/arch/riscv64/ |
H A D | arch_mmu.cpp | 115 DumpPageTableInt((Pte*)VirtFromPhys(B_PAGE_SIZE*pte[i].ppn), in DumpPageTableInt() 121 pte[i].ppn * B_PAGE_SIZE, in DumpPageTableInt() 135 Pte* root = (Pte*)VirtFromPhys(satpReg.ppn * B_PAGE_SIZE); in DumpPageTable() 159 uint64 ppn = mmu_allocate_page() / B_PAGE_SIZE; in LookupPte() local 160 if (ppn == 0) in LookupPte() 162 memset((Pte*)VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE); in LookupPte() 166 .ppn = ppn in LookupPte() 170 pte = (Pte*)VirtFromPhys(B_PAGE_SIZE * pte->ppn); in LookupPte() 189 .ppn = physAdr / B_PAGE_SIZE, in Map() 247 uint64 ppn = mmu_allocate_page() / B_PAGE_SIZE; in PreallocKernelRange() local [all …]
|
/haiku/headers/private/system/arch/riscv64/ |
H A D | arch_cpu_defs.h | 139 uint64 ppn: 44; member 155 uint64 ppn: 44; member
|