Table 5-6 Exception Return Behavior - ARM Cortex-M3 Technical Reference Manual

R2p0
Hide thumbs Also See for Cortex-M3:
Table of Contents

Advertisement

ARM DDI 0337G
Unrestricted Access
When used in this way, the value written to the PC is intercepted and is referred to as
the EXC_RETURN value.
Table 5-6.
EXC_RETURN[3:0]
0bXXX0
0b0001
0b0011
0b01X1
0b1001
0b1101
0b1X11
Reserved entries in this table result in a chained exception to a Usage Fault.
If an EXC_RETURN value is loaded into the PC when in Thread mode, or from the
vector table, or by any other instruction, the value is treated as an address, not as a
special value. This address range is defined to have Execute Never (XN) permissions,
and results in a MemManage fault.
Copyright © 2005-2008 ARM Limited. All rights reserved.
provides return information as defined in
EXC_RETURN[3:0]
Description
Reserved.
Return to Handler mode.
Exception return gets state from the main stack.
On return execution uses the main stack.
Reserved.
Reserved.
Return to Thread mode.
Exception return gets state from the main stack.
On return execution uses the main stack.
Return to Thread mode.
Exception return gets state from the process stack.
On return execution uses the process stack.
Reserved.
Non-Confidential

Table 5-6 Exception return behavior

Exceptions
5-19

Advertisement

Table of Contents
loading

Table of Contents