3.2.47
c13, Context ID Register
ARM DDI 0301H
ID012310
The purpose of the Context ID Register is to provide information on the current ASID and
process ID, for example for the ETM and debug logic.
Table 3-129 lists the purposes of the individual bits of the Context ID Register.
Debug logic uses the ASID information to enable process-dependent breakpoints and
watchpoints.
The Context ID Register is:
•
in CP15 c13
•
a 32-bit read/write register banked for Secure and Non-secure worlds
•
accessible in privileged modes only.
Writing to this register globally flushes the BTAC.
Figure 3-70 shows the arrangement of bits in the Context ID Register.
31
Table 3-129 lists how the bit values correspond with the Context ID Register functions.
Bits
Field name
[31:8]
PROCID
[8:0]
ASID
Table 3-130 lists the results of attempted access for each mode.
Secure Privileged
Read
Write
Secure data
Secure data
The current ASID value in the ID Context Register is exported to the MMU.
To use the Context ID Register read or write CP15 with:
•
Opcode_1 set to 0
•
CRn set to c13
•
CRm set to c0
•
Opcode_2 set to 1.
For example:
MRC p15, 0, <Rd>, c13, c0, 1
Copyright © 2004-2009 ARM Limited. All rights reserved.
Non-Confidential, Unrestricted Access
PROCID
Table 3-129 Context ID Register bit functions
Function
Extends the ASID to form the process ID and identify the current process.
The value is the Process ID. The reset value is 0.
Holds the ASID of the current process to identify the current ASID.
The value is the ASID. The reset value is 0.
Table 3-130 Results of access to the Context ID Register
Non-secure Privileged
Read
Non-secure data
;Read Context ID Register
System Control Coprocessor
8 7
Figure 3-70 Context ID Register format
User
Write
Non-secure data
Undefined exception
0
ASID
3-128