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.

The System Level Programmers’ Model<br />

If an exception is taken in Monitor mode in Non-debug state, the SCR.NS bit is set to zero, see c1,<br />

Secure Configuration Register (SCR) on page B3-106. This forces Secure state entry for all<br />

exceptions. However, if an exception is taken in Monitor mode in Debug state, the SCR.NS bit is not<br />

set to zero.<br />

Note<br />

Many uses of the Security Extensions can be simplified if the system is designed so that exceptions<br />

cannot be taken in Monitor mode.<br />

Setting bits in the Secure Configuration Register causes one or more of external aborts, IRQs <strong>and</strong><br />

FIQs to be h<strong>and</strong>led in Monitor mode <strong>and</strong> to use the Monitor exception base address:<br />

— setting the SCR.EA bit to 1 means external aborts are h<strong>and</strong>led in Monitor mode, instead of<br />

Abort mode<br />

— setting the SCR.FIQ bit to 1 means FIQs are h<strong>and</strong>led in Monitor mode, instead of FIQ mode<br />

— setting the SCR.IRQ bit to 1 means IRQs are h<strong>and</strong>led in Monitor mode, instead of IRQ mode.<br />

For more information see:<br />

— Control of exception h<strong>and</strong>ling by the Security Extensions on page B1-41<br />

— c1, Secure Configuration Register (SCR) on page B3-106.<br />

Setting bits in the Secure Configuration Register prevents code executing in Non-secure state from<br />

being able to mask one or both of asynchronous aborts <strong>and</strong> FIQs:<br />

— Setting the SCR.AW bit to 1 prevents Non-secure setting of CPSR.A to 1.<br />

— Setting the SCR.FW bit to 1 prevents Non-secure setting of CPSR.F to 1. For details of how<br />

this setting interacts with NMFIs see Non-maskable fast interrupts on page B1-18.<br />

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

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

Saved successfully!

Ooh no, something went wrong!