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

Sharing resources among applications requires a state saving mechanism. Two possibilities are:<br />

during a context switch, if the last executing process or thread had access rights to a coprocessor then<br />

the operating system saves the state of that coprocessor<br />

on receiving a request for access to a coprocessor, the operating system saves the old state for that<br />

coprocessor with the last process or thread that accessed it.<br />

Accessing the CPACR<br />

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

c0, <strong>and</strong> set to 2. For example:<br />

MRC p15,0,,c1,c0,2 ; Read CP15 Coprocessor Access Control Register<br />

MCR p15,0,,c1,c0,2 ; Write CP15 Coprocessor Access Control Register<br />

Normally, software uses a read, modify, write sequence to update the CPACR, to avoid unwanted changes<br />

to the access settings for other coprocessors.<br />

B4.6.19 CP15 c2 <strong>and</strong> c3, Not used on a PMSA implementation<br />

The CP15 c2 <strong>and</strong> c3 register encodings are not used on an <strong>ARM</strong>v7-R implementation, see Unallocated<br />

CP15 encodings on page B4-27.<br />

B4.6.20 CP15 c4, Not used<br />

The CP15 c4 register encodings are not used on an <strong>ARM</strong>v7 implementation, see Unallocated CP15<br />

encodings on page B4-27.<br />

B4.6.21 CP15 c5 <strong>and</strong> c6, Memory system fault registers<br />

The CP15 c5 <strong>and</strong> c6 registers are used for memory system fault reporting. In addition, c6 provides the MPU<br />

Region registers. Figure B4-7 on page B4-54 shows the CP15 c5 <strong>and</strong> c6 registers.<br />

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

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

Saved successfully!

Ooh no, something went wrong!