. . . . .
WORKING WITH THE CPU
R2: Translation Table Base register
www.digiembedded.com 91
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
R2: Translation Table Base register
Register R2 is the Translation Table Base register (TTBR), for the base address of the
first-level translation table.
Reading from R2 returns the pointer to the currently active first-level
translation table in bits [31:14] and an
UNPREDICTABLE value in bits [13:0].
Writing to R2 updates the pointer to the first-level translation table from the
value in bits[31:14] of the written value. Bits [13:0]
SHOULD BE ZERO.
Use these instructions to access the Translation Table Base register:
MRC p15, 0, Rd, c2, c0, 0; read TTBR
MCR p15, 0, Rd, c2, c0, 0; write TTBR
The CRm and opcode_2 fields SHOULD BE ZERO when writing to R2.
Register format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
R3:Domain Access Control register
Register R3 is the Domain Access Control register and consists of 16 two-bit fields.
Reading from R3 returns the value of the Domain Access Control register.
Writing to R3 writes the value of the Domain Access Control register.
Register format
Access
permissions and
instructions
Each two-bit field defines the access permissions for one of the 16 domains
(D15–D0):
00 No access: Any access generates a domain fault
01 Client: Accesses are checked against the access permission bits in the section or page descriptor
10 Reserved: Currently behaves like no access mode (00)
11 Manager: Accesses are not checked against the access permission bits, so a permission fault
cannot be generated.
Use these instructions to access the Domain Access Control register:
MRC p15, 0, Rd, c3, c0, 0; read domain access permissions
MCR p15, 0, Rd, c3, c0, 0; write domain access permissions
31 014 13
Translation table base
UNP/SBZ
31 014 13 12 11 10 9 8 7 6 5 4 3 2 115161718192021222324252627282930
D0D1D2D3D4D5D6D7D8D9D10D11D12D13D14D15