29.1.16 __builtin_get_isr_state Built-in Function
Remember: This built-in function
inspects or manipulates the current CPU interrupt state.
Description
Get the current Interrupt Priority Level and Interrupt Enable bits.
Prototype
unsigned int __builtin_get_isr_state(void);
Argument
None.
Return Value
The current IPL and interrupt enable bits in a packed format. This value is to be used
with the __builtin_set_isr_state()
function.
Assembler Operator/ Machine Instruction
mfc0 $3, $12, 0
srl $2,$3,10
ins $2,$3,3,1
andi $2,$2,0xf
sw $2,0($fp)
Error Messages
None.