summaryrefslogtreecommitdiff
path: root/lib_avr32/interrupts.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-12-27 00:46:08 +0100
committerWolfgang Denk <wd@denx.de>2007-12-27 00:46:08 +0100
commitf77ac3d657e9b1d40012153e872a2118cca10a3d (patch)
tree91b2a4cb4cbe233de260e30e63a383c5a502f2d6 /lib_avr32/interrupts.c
parentbd878eb024bf9cb351c9ce66db63558de2d0e395 (diff)
parentdf9c25ea04b38a0e05d4f8c73c5cc144cdafa7db (diff)
downloadu-boot-imx-f77ac3d657e9b1d40012153e872a2118cca10a3d.zip
u-boot-imx-f77ac3d657e9b1d40012153e872a2118cca10a3d.tar.gz
u-boot-imx-f77ac3d657e9b1d40012153e872a2118cca10a3d.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-avr32
Diffstat (limited to 'lib_avr32/interrupts.c')
-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 ce538f3..28df20d 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);
}