HelenOS sources

PTL1_INDEX_ARCH    67 kernel/arch/abs32le/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  0
PTL1_INDEX_ARCH    89 kernel/arch/amd64/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  (((vaddr) >> 30) & 0x1ffU)
PTL1_INDEX_ARCH    83 kernel/arch/arm32/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  0
PTL1_INDEX_ARCH    90 kernel/arch/arm64/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  (((vaddr) >> PTL1_VA_SHIFT) & PTL1_VA_MASK)
PTL1_INDEX_ARCH    82 kernel/arch/ia32/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  0
PTL1_INDEX_ARCH    89 kernel/arch/mips32/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  0
PTL1_INDEX_ARCH    78 kernel/arch/ppc32/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  0
PTL1_INDEX_ARCH    79 kernel/arch/riscv64/include/arch/mm/page.h #define PTL1_INDEX_ARCH(vaddr)  (((vaddr) >> 30) & 0x1ff)
HelenOS homepage, sources at GitHub