XNU CACHE
apple_xnu_procreg)Apple A-series & M-series (A7–M4+)
xnu/main
privilegedSummary
Apple XNU register and bitfield definitions for CACHE (proc_reg.h).
Syntax / Encoding
26 defines
Bitfields (26)
| Bits | Field | Description |
|---|---|---|
| CACHE_ATTRINDX_WRITEBACK | cache enabled, buffer enabled (normal memory) |
| CACHE_ATTRINDX_INNERWRITEBACK | legacy compatibility only |
| CACHE_ATTRINDX_WRITECOMB | no cache, buffered writes (normal memory) |
| CACHE_ATTRINDX_WRITETHRU | cache enabled, buffer disabled (normal memory) |
| CACHE_ATTRINDX_DISABLE | no cache, no buffer (device memory), XS = 0 |
| CACHE_ATTRINDX_RESERVED | reserved for internal use |
| CACHE_ATTRINDX_DISABLE_XS | no cache, no buffer (device memory), XS = 1 |
| CACHE_ATTRINDX_POSTED | XNU proc_reg.h (line 1715) |
| CACHE_ATTRINDX_POSTED_REORDERED | no need for device-nGRE on newer SoCs, fallback to nGnRnE |
| CACHE_ATTRINDX_POSTED_COMBINED_REORDERED | no cache, write gathering, reorderable access, posted writes (device memory), XS=0 |
| CACHE_ATTRINDX_POSTED_COMBINED_REORDERED_XS | no cache, write gathering, reorderable access, posted writes (device memory), XS=1 |
| CACHE_ATTRINDX_DEFAULT | XNU proc_reg.h (line 1719) |
| CACHE_ATTRINDX_N_INDICES | XNU proc_reg.h (line 1720) |
| CACHE_ATTRINDX_WRITEBACK | cache enabled, buffer enabled (normal memory) |
| CACHE_ATTRINDX_INNERWRITEBACK | legacy compatibility only |
| CACHE_ATTRINDX_WRITECOMB | no cache, buffered writes (normal memory) |
| CACHE_ATTRINDX_WRITETHRU | cache enabled, buffer disabled (normal memory) |
| CACHE_ATTRINDX_DISABLE | no cache, no buffer (device memory) |
| CACHE_ATTRINDX_RESERVED | reserved for internal use |
| CACHE_ATTRINDX_POSTED | no cache, no buffer, posted writes (device memory) |
| CACHE_ATTRINDX_POSTED_REORDERED | no cache, reorderable access, posted writes (device memory) |
| CACHE_ATTRINDX_POSTED_COMBINED_REORDERED | no cache, write gathering, reorderable access, posted writes (device memory) |
| CACHE_ATTRINDX_DEFAULT | XNU proc_reg.h (line 1745) |
| CACHE_ATTRINDX_N_INDICES | XNU proc_reg.h (line 1746) |
| CACHE_ATTRINDX_RT | XNU proc_reg.h (line 1751) |
| CACHE_ATTRINDX_RT | XNU proc_reg.h (line 1753) |