| |||
| Home > System Control Coprocessor > System control processor registers > c3, Domain Access Control Register | |||
The purpose of the Domain Access Control Register is to hold the access permissions for a maximum of 16 domains.
Table 3.59 lists the purposes of the individual bits in the Domain Access Control Register.
The Domain Access Control Register is:
in CP15 c3
a 32-bit read/write register banked for Secure and Non-secure worlds
accessible in privileged modes only.
Figure 3.35 shows the bit arrangement of the Domain Access Control Register.
Table 3.59 lists how the bit values correspond with the Domain Access Control Register functions.
Table 3.59. Domain Access Control Register bit functions
| Bits | Field name | Function |
|---|---|---|
| - | D<n>[a] | The purpose of the fields D15-D0 in the register is to define the access permissions for each one of the 16 domains. These domains can be either sections, large pages or small pages of memory: b00 = No access, reset value. Any access generates a domain fault. b01 = Client. Accesses are checked against the access permission bits in the TLB entry. b10 = Reserved. Any access generates a domain fault. b11 = Manager. Accesses are not checked against the access permission bits in the TLB entry, so a permission fault cannot be generated. |
[a] n is the Domain number in the range between 0 and 15 | ||
Attempts to write to this register in Secure Privileged mode when CP15SDISABLE is HIGH result in an Undefined exception, see TrustZone write access disable.
Table 3.60 lists the results of attempted access for each mode.
Table 3.60. Results of access to the Domain Access Control Register
| Secure Privileged | Non-secure Privileged | User | ||
|---|---|---|---|---|
| Read | Write | Read | Write | |
| Secure data | Secure data | Non-secure data | Non-secure data | Undefined exception |
To use the Domain Access Control Register read or write CP15 c3 with:
Opcode_1 set to 0
CRn set to c3
CRm set to c0
Opcode_2 set to 0.
For example:
MRC p15, 0, <Rd>, c3, c0, 0 ; Read Domain Access Control Register
MCR p15, 0, <Rd>, c3, c0, 0 ; Write Domain Access Control Register