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.

C, bit [0], <strong>ARM</strong>v7-A base architecture<br />

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

See the definition given for the TTBR0 in c2, Translation Table Base Register 0 (TTBR0)<br />

on page B3-113.<br />

Accessing the TTBR1 register<br />

To access the TTBR1 register you read or write the CP15 registers with set to 0, set to c2, <br />

set to c0, <strong>and</strong> set to 1. For example:<br />

MRC p15,0,,c2,c0,1 ; Read CP15 Translation Table Base Register 1<br />

MCR p15,0,,c2,c0,1 ; Write CP15 Translation Table Base Register 1<br />

c2, Translation Table Base Control Register (TTBCR)<br />

The Translation Table Base Control Register, TTBCR, determines which of the Translation Table Base<br />

Registers, TTBR0 or TTBR1, defines the base address for the translation table walk that is required when<br />

an MVA is not found in the TLB.<br />

The TTBCR:<br />

Is a 32-bit read/write register.<br />

Is accessible only in privileged modes<br />

Has a defined reset value of 0. When the Security Extensions are implemented, this reset value<br />

applies only to the Secure copy of the register, <strong>and</strong> software must program the Non-secure copy of<br />

the register with the required value.<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 />

When the Security Extensions are not implemented, the format of the TTBCR is:<br />

31 3 2 0<br />

When the Security Extensions are implemented, the format of the TTBCR is:<br />

Bits [31:6, 3] UNK/SBZP.<br />

UNK/SBZP<br />

31 6 5 4 3 2 0<br />

UNK/SBZP<br />

PD1, bit [5], when Security Extensions are implemented<br />

Translation table walk Disable bit for TTBR1. This bit controls whether a translation table<br />

walk is performed on a TLB miss when TTBR1 is used:<br />

0 If a TLB miss occurs when TTBR1 is used a translation table walk is performed.<br />

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

PD1<br />

PD0<br />

(0)<br />

N<br />

N

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

Saved successfully!

Ooh no, something went wrong!