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

CPSR M field <strong>and</strong> A, I, <strong>and</strong> F mask bit values on exception entry<br />

On exception entry, the processor mode is set to one of the exception modes <strong>and</strong> the CPSR[A,I,F] interrupt<br />

disable (mask) bits are set to new values:<br />

the CPSR.I bit is always set to 1, to disable IRQs<br />

the CPSR.M (mode), CPSR.A (asynchronous abort disable), <strong>and</strong> CPSR.F (FIQ disable) bits are set<br />

to values that depend:<br />

— on the exception type<br />

— if the Security Extensions are implemented, on the security state <strong>and</strong> some bits of the SCR, see<br />

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

The new values are shown in:<br />

Table B1-6, for an implementation that does not include the Security Extensions<br />

Table B1-7 on page B1-37, for an implementation that includes the Security Extensions, when the<br />

security state is Secure (NS == 0).<br />

Table B1-8 on page B1-37, for an implementation that includes the Security Extensions, when the<br />

security state is Non-secure (NS == 1).<br />

In these tables, Unchanged indicates that the bit value is unchanged from its value when the exception was<br />

taken.<br />

Table B1-6 A <strong>and</strong> F bit values on exception entry, without Security Extensions<br />

Exception Exception mode CPSR.A CPSR.F<br />

Reset Supervisor 1 1<br />

Undefined Instruction Undefined Unchanged Unchanged<br />

Supervisor Call (SVC) Supervisor Unchanged Unchanged<br />

All aborts Abort 1 Unchanged<br />

IRQ IRQ 1 Unchanged<br />

FIQ FIQ 1 1<br />

B1-36 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!