[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:
@@ -49,7 +49,9 @@ FUNCTION_END(arch_int_restore_interrupts)
|
|||||||
FUNCTION(arch_int_are_interrupts_enabled):
|
FUNCTION(arch_int_are_interrupts_enabled):
|
||||||
mrs r0, cpsr
|
mrs r0, cpsr
|
||||||
and r0, r0, #(1<<7) /*read the I bit*/
|
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
|
bx lr
|
||||||
FUNCTION_END(arch_int_are_interrupts_enabled)
|
FUNCTION_END(arch_int_are_interrupts_enabled)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user