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.

The Instruction Sets<br />

A4.9 Exception-generating <strong>and</strong> exception-h<strong>and</strong>ling instructions<br />

The following instructions are intended specifically to cause a processor exception to occur:<br />

The Supervisor Call (SVC, previously SWI) instruction is used to cause an SVC exception to occur. This<br />

is the main mechanism for User mode code to make calls to privileged operating system code. For<br />

more information, see Supervisor Call (SVC) exception on page B1-52.<br />

The Breakpoint instruction BKPT provides for software breakpoints. For more information, see About<br />

debug events on page C3-2.<br />

In privileged system level code, the Secure Monitor Call (SMC, previously SMI) instruction. For more<br />

information, see Secure Monitor Call (SMC) exception on page B1-53.<br />

System level variants of the SUBS <strong>and</strong> LDM instructions can be used to return from exceptions. From <strong>ARM</strong>v6,<br />

the SRS instruction can be used near the start of an exception h<strong>and</strong>ler to store return information, <strong>and</strong> the RFE<br />

instruction can be used to return from an exception using the stored return information. For details of these<br />

instructions, see Chapter B6 System Instructions.<br />

A4-24 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!