Crate arm_sysregs

Crate arm_sysregs 

Source
Expand description

Access to Arm CPU system registers.

Macros§

read_sysreg
Generates a public function named read_$ident to read the system register $sysreg as a value of type $type.
read_write_sysreg
Generates public functions named read_$sysreg and write_$sysreg to read or write (respectively) a value of type $type from/to the system register $sysreg.
write_sysreg
Generates a public function named write_$sysreg to write a value of type $type to the system register $sysreg.

Structs§

CacheLevel
Wrapper type for describing cache level in a human readable format, i.e. L3 cache = CacheLevel(3)
CntfrqEl0
CNTFRQ_EL0 system register value.
CtrEl0
CTR_EL0 system register value.
Dit
DIT system register value.
PmcrEl0
PMCR_EL0 system register value.
TpidrEl0
TPIDR_EL0 system register value.
TpidrroEl0
TPIDRRO_EL0 system register value.

Enums§

CacheType
Cache type enum.
ExceptionLevel
An AArch64 exception level.
StackPointer
Values for SPSEL.

Functions§

read_cntfrq_el0
Returns the value of the cntfrq_el0 system register.
read_ctr_el0
Returns the value of the ctr_el0 system register.
read_dit
Returns the value of the dit system register.
read_pmcr_el0
Returns the value of the pmcr_el0 system register.
read_tpidr_el0
Returns the value of the tpidr_el0 system register.
read_tpidrro_el0
Returns the value of the tpidrro_el0 system register.
write_cntfrq_el0
Writes value to the cntfrq_el0 system register.
write_dit
Writes value to the dit system register.
write_pmcr_el0
Writes value to the pmcr_el0 system register.
write_tpidr_el0
Writes value to the tpidr_el0 system register.
write_tpidrro_el0
Writes value to the tpidrro_el0 system register.