[GSoC] [ARM] Patch by Johannes Wischert.
Fix arch_int_are_interrupts_enabled(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
33a3c23a00
commit
d10d43315b
@ -49,7 +49,9 @@ FUNCTION_END(arch_int_restore_interrupts)
|
||||
FUNCTION(arch_int_are_interrupts_enabled):
|
||||
mrs r0, cpsr
|
||||
and r0, r0, #(1<<7) /*read the I bit*/
|
||||
mvn r0, r0 /*negate it since 1 means disabled interrupts*/
|
||||
cmp r0,#0
|
||||
moveq r0,#1
|
||||
movne r0,#0
|
||||
bx lr
|
||||
FUNCTION_END(arch_int_are_interrupts_enabled)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user