6.3. Entering and leaving an exception

This section describes the processor response to an exception, and how to return to the place where an exception occurred after the exception has been handled. The method for returning is different depending on the exception type (see Types of exception).

Processors that support Thumb state use the same basic exception handling mechanism as processors that do not support Thumb state. An exception causes the next instruction to be fetched from the appropriate vector table entry.

The same vector table is used for exceptions in both Thumb state and ARM state. An initial step (to switch to ARM state) is added to the exception handling procedure described in The processor response to an exception.

In the following descriptions, it is clearly marked if there are further considerations that you must take into account when writing exception handlers suitable for use on processors that support Thumb state.

This section includes:

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G
Non-Confidential