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 />

The Execute Never (XN) attribute <strong>and</strong> instruction prefetching<br />

Each memory region can be tagged as not containing executable code. If the Execute never (XN) bit is set<br />

to 1, any attempt to execute an instruction in that region results in a Permission fault, <strong>and</strong> the implementation<br />

must not access the region to prefetch instructions speculatively. If the XN bit is 0, code can execute from<br />

that memory region.<br />

Note<br />

The XN bit acts as an additional permission check. The address must also have a valid read access<br />

permission.<br />

In <strong>ARM</strong>v7, all regions of memory that contain read-sensitive peripherals must be marked as XN to avoid<br />

the possibility of a speculative prefetch accessing the locations.<br />

B4-10 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!