ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

XNU ARM_PTE

T2 apple-silicon register register
Apple XNU Register Group: ARM_PTE (57 defines)
SourceApple XNU ARM64 System Registers (proc_reg.h) (apple_xnu_procreg)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeApple Silicon (XNU)
Apple A-series & M-series (A7–M4+)
License & VersionAPSL-2.0
xnu/main
Upstreamhttps://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm64/proc_reg.h
Privilegeprivileged
Note: Extracted from Apple XNU kernel headers; implementation-defined fields vary across Apple A/M silicon generations.

Summary

Apple XNU register and bitfield definitions for ARM_PTE (proc_reg.h).

Syntax / Encoding

57 defines

Bitfields (57)

BitsFieldDescription
ARM_PTE_SIZEsize of area covered by a tte
ARM_PTE_OFFMASKoffset within pte area
14ARM_PTE_SHIFTpage descriptor shift
ARM_PTE_MASKmask for output address in PTE
ARM_PTE_SIZEsize of area covered by a tte
ARM_PTE_OFFMASKoffset within pte area
12ARM_PTE_SHIFTpage descriptor shift
ARM_PTE_MASKmask for output address in PTE
ARM_PTE_EMPTYunassigned - invalid entry
ARM_PTE_COMPRESSEDcompressed...
ARM_PTE_COMPRESSED_ALT... and was "alt_acct"
ARM_PTE_COMPRESSED_MASKXNU proc_reg.h (line 2274)
ARM_PTE_TYPE_VALIDvalid L3 entry: includes bit #1 (counterintuitively)
ARM_PTE_TYPE_FAULTinvalid L3 entry
ARM_PTE_TYPE_MASKmask to get pte type
ARM_PTE_PAGE_MASKoutput address mask for page
12ARM_PTE_PAGE_SHIFTpage shift for the output address in the entry
7:6ARM_PTE_APMASKmask access protections
ARM_PTE_ATTRINDXMASKmask memory attributes index
9:8ARM_PTE_SHMASKmask access shared
ARM_PTE_AFvalue for access
ARM_PTE_AFMASKaccess mask
ARM_PTE_NGvalue for a global mapping
ARM_PTE_NG_MASKnotGlobal mapping mask
ARM_PTE_NSvalue for a secure mapping
ARM_PTE_NS_MASKnotSecure mapping mask
ARM_PTE_HINTvalue for contiguous entries hint
ARM_PTE_HINT_MASKmask for contiguous entries hint
ARM_PTE_GPvalue marking a guarded page
ARM_PTE_GP_MASKmask for a guarded page mark
ARM_PTE_HINT_ENTRIESnumber of entries the hint covers
ARM_PTE_HINT_ENTRIES_SHIFTshift to construct the number of entries
ARM_PTE_HINT_ADDR_MASKmask to extract the starting hint address
21ARM_PTE_HINT_ADDR_SHIFTshift for the hint address
ARM_PTE_HINT_ENTRIESnumber of entries the hint covers
ARM_PTE_HINT_ENTRIES_SHIFTshift to construct the number of entries
ARM_PTE_HINT_ADDR_MASKmask to extract the starting hint address
16ARM_PTE_HINT_ADDR_SHIFTshift for the hint address
ARM_PTE_PNXvalue for privilege no execute bit
ARM_PTE_PXNXNU proc_reg.h (line 2325)
ARM_PTE_PNXMASKprivilege no execute mask
ARM_PTE_NXvalue for no execute bit
ARM_PTE_XNXNU proc_reg.h (line 2329)
ARM_PTE_NXMASKno execute mask
ARM_PTE_XMASKXNU proc_reg.h (line 2332)
ARM_PTE_GUARDEDvalue for "guarded"/BTI enforcing code page
ARM_PTE_GUARDED_MASKXNU proc_reg.h (line 2335)
ARM_PTE_WIREDvalue for software wired bit
ARM_PTE_WIRED_MASKsoftware wired mask
ARM_PTE_WRITEABLEvalue for software writeable bit
ARM_PTE_WRITEABLE_MASKsoftware writeable mask
ARM_PTE_WRITABLEXNU proc_reg.h (line 2342)
ARM_PTE_SW_RESERVED_MASKXNU proc_reg.h (line 2345)
ARM_PTE_RESERVED_MASKXNU proc_reg.h (line 2350)
ARM_PTE_BOOT_PAGE_BASEXNU proc_reg.h (line 2365)
ARM_PTE_BOOT_PAGEXNU proc_reg.h (line 2370)
ARM_PTE_BOOT_PAGEXNU proc_reg.h (line 2372)