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.

Assembler syntax<br />

SMC #<br />

where:<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7.<br />

System Instructions<br />

Is a 4-bit immediate value. This is ignored by the <strong>ARM</strong> processor. It can be used by the SMC<br />

exception h<strong>and</strong>ler (Secure Monitor code) to determine what service is being requested, but<br />

this is not recommended.<br />

The pre-UAL syntax SMI is equivalent to SMC.<br />

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations();<br />

if HaveSecurityExt() && CurrentModeIsPrivileged() then<br />

TakeSMCException(); // Secure Monitor Call if privileged<br />

else<br />

UNDEFINED;<br />

Exceptions<br />

Secure Monitor Call.<br />

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

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

Saved successfully!

Ooh no, something went wrong!