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.

B4.2 Memory access control<br />

Protected Memory System <strong>Architecture</strong> (PMSA)<br />

Access to a memory region is controlled by the access permission bits for each region, held in the DRACR<br />

<strong>and</strong> IRACR. For descriptions of the registers see:<br />

c6, Data Region Access Control Register (DRACR) on page B4-64<br />

c6, Instruction Region Access Control Register (IRACR) on page B4-65.<br />

B4.2.1 Access permissions<br />

Access permission bits control access to the corresponding memory region. If an access is made to an area<br />

of memory without the required permissions, a Permission fault is generated. In the appropriate Region<br />

Access Control Register:<br />

the AP bits determine the access permissions<br />

the XN bit provides an additional permission bit for instruction fetches.<br />

The access permissions are a three-bit field, DRACR.AP[2:0] or IRACR.AP[2:0]. Table B4-3 shows the<br />

possible values of this field.<br />

AP[2:0]<br />

Privileged<br />

permissions<br />

User<br />

permissions<br />

Description<br />

Table B4-3 Access permissions<br />

000 No access No access All accesses generate a Permission fault<br />

001 Read/Write No access All User mode accesses generate Permission faults<br />

010 Read/Write Read-only User mode write accesses generate Permission faults<br />

011 Read/Write Read/Write Full access<br />

100 UNPREDICTABLE UNPREDICTABLE Reserved<br />

101 Read-only No Access Privileged read-only, all other accesses generate<br />

Permission faults<br />

110 Read-only Read-only All write accesses generate Permission faults.<br />

111 UNPREDICTABLE UNPREDICTABLE Reserved<br />

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

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

Saved successfully!

Ooh no, something went wrong!