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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c6, Memory Region registers (DMRR0-DMRR7 <strong>and</strong> IMRR0-IMRR7)<br />

The Memory Region registers define the MPU memory regions as follows:<br />

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

If an implementation supports only a single set of memory region definitions that apply to both data<br />

<strong>and</strong> instruction accesses, it must provide a single set of eight Data or unified Memory Region<br />

Registers, DMRR0-DMRR7.<br />

If an implementation supports separate memory region definitions for data <strong>and</strong> instruction accesses,<br />

it must provide two sets of eight Memory Region Registers:<br />

— eight Data or unified Memory Region Registers, DMRR0-DMRR7<br />

— eight Instruction Memory Region Registers, IMRR0-IMRR7.<br />

Each Memory Region register:<br />

defines a single memory region by specifying its base address <strong>and</strong> size<br />

includes an enable bit for the associated memory region.<br />

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

31 12 11 6 5 1 0<br />

Region base address, bits [31:12]<br />

Bits [31:12] of the base address for the region. Bits [11:0] of the address must be zero.<br />

Therefore, the smallest region that can be defined is 4KB. Regions must be aligned<br />

appropriately, <strong>and</strong> so for regions larger than 4KB the least significant bits of this field must<br />

be zero. For more information, see the description of the Size field.<br />

Bits [11:6] Reserved. UNK/SBZP.<br />

Size, bits [5:1]<br />

Region base address Reserved Size En<br />

Encodes the size of the region. Table H-20 shows the permitted encodings for this field.<br />

Table H-20 MPU Region size encoding<br />

Encoding Region size Base address constraints<br />

0b01011 4KB None<br />

0b01100 8KB Register bit [12] must be zero<br />

0b01101 16KB Register bits [13:12] must be zero<br />

0b01110 32KB Register bits [14:12] must be zero<br />

0b01111 64KB Register bits [15:12] must be zero<br />

0b10000 128KB Register bits [16:12] must be zero<br />

0b10001 256KB Register bits [17:12] must be zero<br />

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

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

Saved successfully!

Ooh no, something went wrong!