From d10d43315bec53bdb8c47eb8841091e05821a845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 15 Aug 2009 14:28:00 +0000 Subject: [PATCH] [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 --- src/system/kernel/arch/arm/arch_asm.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/arm/arch_asm.S b/src/system/kernel/arch/arm/arch_asm.S index 07fd53326f..c34511e54f 100644 --- a/src/system/kernel/arch/arm/arch_asm.S +++ b/src/system/kernel/arch/arm/arch_asm.S @@ -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)