09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

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.

3.2.28 c1, Secure Configuration Register<br />

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

System Control Coprocessor<br />

You must execute an Instruction Memory Barrier (IMB) sequence immediately after an update<br />

of the Coprocessor Access Control Register, see Memory Barriers in the <strong>ARM</strong> Architecture<br />

<strong>Reference</strong> <strong>Manual</strong>. You must not attempt to execute any instructions that are affected by the<br />

change of access rights between the IMB sequence and the register update.<br />

To determine if any particular coprocessor exists in the system, write the access bits for the<br />

coprocessor of interest with a value other than b00. If the coprocessor does not exist in the<br />

system the access rights remain set to b00.<br />

Note<br />

• For the processor, there is a direct relationship between the CPEXIST[13:0] inputs and<br />

the Coprocessor Access Control Register bits cp13-cp01.<br />

Each CPEXIST input represents the existence of a coprocessor that you use to enable a<br />

particular coprocessor. If the appropriate CPEXIST input is set to a:<br />

— logical 0, access is denied to that coprocessor or reset state as defined by the register<br />

— logical 1, then you can reprogram that coprocessor.<br />

• You must enable the Coprocessor Access Control Register before accessing any NEON<br />

or VFP system register.<br />

• You must set CPEXIST[11:10] to b11 to use the NEON or VFP coprocessor. All other<br />

CPEXIST bits must be set to 0.<br />

• You must set CPEXIST[11:10] to b00 if you configure the processor without the NEON<br />

coprocessor.<br />

The purpose of the Secure Configuration Register is to define:<br />

• the current state of the processor as Secure or Nonsecure states<br />

• in which state the core executes exceptions<br />

• the ability to modify the A and I bits in the CPSR in the Nonsecure state.<br />

The Secure Configuration Register is:<br />

• a read/write register<br />

• accessible in secure privileged modes only.<br />

Figure 3-23 shows the bit arrangement of the Secure Configuration Register.<br />

31 6 5 4 3 2 1 0<br />

Reserved<br />

Figure 3-23 Secure Configuration Register format<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 3-53<br />

ID060510 Non-Confidential<br />

AW<br />

FW<br />

EA<br />

FIQ<br />

IRQ<br />

NS

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

Saved successfully!

Ooh no, something went wrong!