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.

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

Memory region numbering starts at 0 <strong>and</strong> goes up to one less than the number of regions<br />

supported.<br />

Writing a value to this register that is greater than or equal to the number of memory regions supported has<br />

UNPREDICTABLE results.<br />

In the context of the RGNR description, when the MPU implements separate Data <strong>and</strong> Instruction address<br />

maps the Number of memory regions supported is the greater of:<br />

number of Data memory regions supported<br />

number of Instruction memory regions supported.<br />

Accessing the RGNR<br />

To access the RGNR you read or write the CP15 registers with set to 0, set to c6, set to<br />

c2, <strong>and</strong> set to 0. For example:<br />

MRC p15,0,,c6,c2,0 ; Read CP15 MPU Region Number Register<br />

MCR p15,0,,c6,c2,0 ; Write CP15 MPU Region Number Register<br />

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

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

Saved successfully!

Ooh no, something went wrong!