diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-12-17 10:02:44 (GMT) |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-12-17 10:02:44 (GMT) |
commit | df9c25ea04b38a0e05d4f8c73c5cc144cdafa7db (patch) | |
tree | 05c600c6a1e908535aaf9880927d5ff9593d3469 /lib_avr32/interrupts.c | |
parent | acac475212cbedb17b321a363a1c878e2b47b37f (diff) | |
download | u-boot-df9c25ea04b38a0e05d4f8c73c5cc144cdafa7db.tar.xz |
AVR32: Fix logic inversion in disable_interrupts()
disable_interrupts() should return nonzero if interrupts were
_enabled_ before, not disabled.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'lib_avr32/interrupts.c')
-rw-r--r-- | lib_avr32/interrupts.c | 2 |
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); } |