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.

<strong>ARM</strong>v4 <strong>and</strong> <strong>ARM</strong>v5 Differences<br />

c2, Memory Region Cacheability Registers (DCR <strong>and</strong> ICR)<br />

The two Memory Region Cacheability Registers are:<br />

The Data or unified Cacheability Register, DCR.<br />

The Instruction Cacheability Register, ICR. The ICR is implemented only when the processor<br />

implements separate data <strong>and</strong> instruction memory protection region definitions.<br />

A Memory Region Cacheability Registers holds a Cacheability bit, C, for each of the eight memory<br />

protection regions.<br />

The format of a Memory Region Cacheability Register is:<br />

31 8 7 6 5 4 3 2 1 0<br />

Reserved C7 C6 C5 C4 C3 C2 C1 C0<br />

Bits [31:8] Reserved. UNK/SBZP.<br />

Cn, bit [n], for n = 0 to 7<br />

Cacheability bit, C, for memory protection region n.<br />

Accessing the Memory Region Cacheability Registers<br />

To access the Memory Region Cacheability Registers you read or write the CP15 registers with set<br />

to 0, set to c2, set to c0, <strong>and</strong> set to:<br />

0 for the DCR<br />

1 for the IPR.<br />

For example:<br />

MRC p15,0,,c2,c0,0 ; Read CP15 Data or unified Region Cacheability Register<br />

MCR p15,0,,c2,c0,0 ; Write CP15 Data or unified Region Cacheability Register<br />

MRC p15,0,,c2,c0,1 ; Read CP15 Instruction Region Cacheability Register<br />

MCR p15,0,,c2,c0,1 ; Write CP15 Instruction Region Cacheability Register<br />

c3, Memory Region Bufferability Register (DBR)<br />

The Memory Region Bufferability Register, DBR, holds Bufferability bit, B, for each of the eight data or<br />

unified memory protection regions.<br />

Only data accesses are bufferable <strong>and</strong> therefore there is only a single Memory Region Bufferability Register,<br />

regardless of whether the implementation has a single set of protection regions, or separate protection region<br />

definitions for instruction <strong>and</strong> data accesses.<br />

The format of the Memory Region Bufferability Register is:<br />

31 8 7 6 5 4 3 2 1 0<br />

Reserved B7 B6 B5 B4 B3 B2 B1 B0<br />

Bits [31:8] Reserved. UNK/SBZP.<br />

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

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

Saved successfully!

Ooh no, something went wrong!