summaryrefslogtreecommitdiff
path: root/lib_avr32
diff options
context:
space:
mode:
Diffstat (limited to 'lib_avr32')
-rw-r--r--lib_avr32/interrupts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_avr32/interrupts.c b/lib_avr32/interrupts.c
index ce538f3d924..28df20db010 100644
--- a/lib_avr32/interrupts.c
+++ b/lib_avr32/interrupts.c
@@ -35,5 +35,5 @@ int disable_interrupts(void)
sr = sysreg_read(SR);
asm volatile("ssrf %0" : : "n"(SYSREG_GM_OFFSET));
- return SYSREG_BFEXT(GM, sr);
+ return !SYSREG_BFEXT(GM, sr);
}