Expand description
Access to Arm CPU system registers.
Macros§
- read_
sysreg - Generates a public function named
read_$identto read the system register$sysregas a value of type$type. - read_
write_ sysreg - Generates public functions named
read_$sysregandwrite_$sysregto read or write (respectively) a value of type$typefrom/to the system register$sysreg. - write_
sysreg - Generates a public function named
write_$sysregto write a value of type$typeto the system register$sysreg.
Structs§
- Cache
Level - Wrapper type for describing cache level in a human readable format, i.e. L3 cache =
CacheLevel(3) - Cntfrq
El0 CNTFRQ_EL0system register value.- CtrEl0
CTR_EL0system register value.- Dit
DITsystem register value.- PmcrEl0
PMCR_EL0system register value.- Tpidr
El0 TPIDR_EL0system register value.- Tpidrro
El0 TPIDRRO_EL0system register value.
Enums§
- Cache
Type - Cache type enum.
- Exception
Level - An AArch64 exception level.
- Stack
Pointer - Values for SPSEL.
Functions§
- read_
cntfrq_ el0 - Returns the value of the
cntfrq_el0system register. - read_
ctr_ el0 - Returns the value of the
ctr_el0system register. - read_
dit - Returns the value of the
ditsystem register. - read_
pmcr_ el0 - Returns the value of the
pmcr_el0system register. - read_
tpidr_ el0 - Returns the value of the
tpidr_el0system register. - read_
tpidrro_ el0 - Returns the value of the
tpidrro_el0system register. - write_
cntfrq_ el0 - Writes
valueto thecntfrq_el0system register. - write_
dit - Writes
valueto theditsystem register. - write_
pmcr_ el0 - Writes
valueto thepmcr_el0system register. - write_
tpidr_ ⚠el0 - Writes
valueto thetpidr_el0system register. - write_
tpidrro_ ⚠el0 - Writes
valueto thetpidrro_el0system register.