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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Virtual Memory System <strong>Architecture</strong> (VMSA)<br />

NS, bit [0] Non Secure bit. Except when the processor is in Monitor mode, this bit determines the<br />

security state of the processor. Table B3-27 shows the security settings:<br />

For more information, see Changing from Secure to Non-secure state on page B1-27.<br />

The value of the NS bit also affects the accessibility of the Banked CP15 registers in Monitor<br />

mode, see Access to registers in Monitor mode on page B3-77.<br />

Unless the processor is in Debug state, when an exception occurs in Monitor mode the<br />

hardware sets the NS bit to 0.<br />

Whenever the processor changes security state, the monitor code can change the value of the EA, FIQ <strong>and</strong><br />

IQ bits. This means that the behavior of IRQ, FIQ <strong>and</strong> External Abort exceptions can be different in each<br />

security state.<br />

Accessing the SCR<br />

SCR.NS<br />

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

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

MRC p15,0,,c1,c1,0 ; Read CP15 Secure Configuration Register<br />

MCR p15,0,,c1,c1,0 ; Write CP15 Secure Configuration Register<br />

B3.12.21 c1, Secure Debug Enable Register (SDER)<br />

The Secure Debug Enable Register, SDER, is part of the Security Extensions.<br />

The SDER controls invasive <strong>and</strong> non-invasive debug in Secure User mode.<br />

The SDER is:<br />

present only when the Security Extensions are implemented<br />

a 32-bit read/write register<br />

a Restricted access register, meaning it exists only in the Secure state<br />

accessible in Secure privileged modes only.<br />

Table B3-27 Processor security state<br />

Processor mode, from CPSR.M bits<br />

Monitor mode All modes except Monitor mode<br />

0 Secure state Secure state<br />

1 Secure state Non-secure state<br />

B3-108 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!