05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B3.12.23 CP15 c2 <strong>and</strong> c3, Memory protection <strong>and</strong> control registers<br />

Virtual Memory System <strong>Architecture</strong> (VMSA)<br />

On an <strong>ARM</strong>v7-A implementation, the CP15 c2 <strong>and</strong> c3 registers are used for memory protection <strong>and</strong> control.<br />

Figure B3-14 shows these registers.<br />

CRn opc1 CRm opc2<br />

c2 0 c0<br />

0<br />

TTBR0, Translation Table Base Register 0<br />

1 TTBR1, Translation Table Base Register 1<br />

2<br />

TTBCR, Translation Table Base Control Register<br />

c3 0 c0 0<br />

DACR, Domain Access Control Register<br />

Read-only Read/Write<br />

Write-only<br />

Figure B3-14 CP15 c2 <strong>and</strong> c3 registers<br />

CP15 c2 <strong>and</strong> c3 register encodings not shown in Figure B3-14 are UNPREDICTABLE, see Unallocated CP15<br />

encodings on page B3-69.<br />

B3.12.24 CP15 c2, Translation table support registers<br />

When the VMSA is implemented, three translation table support registers are implemented in CP15 c2.<br />

Table B3-28 summarizes these registers.<br />

Register name Description<br />

The description of the TTBCR describes the use of this set of registers, see c2, Translation Table Base<br />

Control Register (TTBCR) on page B3-117.<br />

c2, Translation Table Base Register 0 (TTBR0)<br />

Table B3-28 VMSA translation table support registers<br />

Translation Table Base 0 c2, Translation Table Base Register 0 (TTBR0)<br />

Translation Table Base 1 c2, Translation Table Base Register 1 (TTBR1) on page B3-116<br />

Translation Table Base Control c2, Translation Table Base Control Register (TTBCR) on page B3-117<br />

The Translation Table Base Register 0, TTBR0, holds the base address of translation table 0, <strong>and</strong><br />

information about the memory it occupies.<br />

The TTBR0 register:<br />

is a 32-bit read/write register<br />

is accessible only in privileged modes<br />

when the Security Extensions are implemented:<br />

— is a Banked register.<br />

— has write access to the Secure copy of the register disabled when the CP15SDISABLE signal<br />

is asserted HIGH.<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. B3-113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!