arch/arm64/tools/sysreg

Source file repositories/reference/linux-study-clean/arch/arm64/tools/sysreg

File Facts

System
Linux kernel
Corpus path
arch/arm64/tools/sysreg
Extension
[no extension]
Size
86715 bytes
Lines
5860
Domain
Architecture Layer
Bucket
arch/arm64
Inferred role
Architecture Layer: arch/arm64
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only
#
# System register metadata

# Each System register is described by a Sysreg block:

# Sysreg 	<name>	<op0> 	<op1>	<crn>	<crm>	<op2>
# <field>
# ...
# EndSysreg

# Within a Sysreg block, each field can be described as one of:

# Res0	<msb>[:<lsb>]

# Res1	<msb>[:<lsb>]

# Unkn	<msb>[:<lsb>]

# Field	<msb>[:<lsb>]	<name>

# Enum	<msb>[:<lsb>]	<name>
#	<enumval>	<enumname>
#	...
# EndEnum

# For VHE aliases (*_EL12, *_EL02) of system registers, a Mapping
# entry describes the register the alias actually accesses:

# Sysreg 	<name_EL12>	<op0> 	<op1>	<crn>	<crm>	<op2>
# Mapping	<name_EL1>
# EndSysreg

# Where multiple system registers are not VHE aliases but share a
# common layout, a SysregFields block can be used to describe the
# shared layout:

# SysregFields	<fieldsname>
# <field>
# ...
# EndSysregFields

# and referenced from within the Sysreg:

# Sysreg 	<name>	<op0> 	<op1>	<crn>	<crm>	<op2>
# Fields	<fieldsname>
# EndSysreg

# For ID registers we adopt a few conventions for translating the
# language in the ARM into defines:
#
# NI  - Not implemented
# IMP - Implemented
#
# In general it is recommended that new enumeration items be named for the
# feature that introduces them (eg, FEAT_LS64_ACCDATA introduces enumeration
# item ACCDATA) though it may be more tasteful to do something else.

Sysreg	OSDTRRX_EL1	2	0	0	0	2
Res0	63:32
Field	31:0	DTRRX
EndSysreg

Sysreg	MDCCINT_EL1	2	0	0	2	0
Res0	63:31
Field	30	RX
Field	29	TX
Res0	28:0
EndSysreg

Annotation

Implementation Notes