29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

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.

<strong>Compiler</strong>-specific Features<br />

Return value<br />

The __current_sp intrinsic returns the current value of the stack pointer at the point in<br />

the program where the intrinsic is used.<br />

See also<br />

• __builtin_frame_address on page 4-66<br />

• __current_pc on page 4-70<br />

• __return_address on page 4-83<br />

• Legacy inline assembler that accesses sp, lr, or pc on page 6-27 in the <strong>Compiler</strong><br />

User <strong>Guide</strong>.<br />

4.7.13 __disable_fiq<br />

This intrinsic disables FIQ interrupts.<br />

Syntax<br />

int __disable_fiq(void)<br />

Note<br />

On <strong>ARM</strong>v7 and <strong>ARM</strong>v7-M, the __disable_fiq intrinsic has prototype:<br />

void __disable_fiq(void)<br />

Return value<br />

__fiq returns the value the FIQ interrupt mask has in the PSR prior to the disabling of<br />

FIQ interrupts.<br />

Restrictions<br />

The __disable_fiq intrinsic can only be executed in privileged modes, that is, in non<br />

user modes. In User mode this intrinsic does not change the interrupt flags in the CPSR.<br />

Example<br />

void foo(void)<br />

{<br />

int was_masked = __disable_fiq();<br />

/* ... */<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 4-71<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!