summaryrefslogtreecommitdiff
path: root/lib_avr32
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
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')
-rw-r--r--lib_avr32/board.c2
-rw-r--r--lib_avr32/interrupts.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib_avr32/board.c b/lib_avr32/board.c
index 11d864f..809ee3b 100644
--- a/lib_avr32/board.c
+++ b/lib_avr32/board.c
@@ -311,6 +311,8 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
dma_alloc_init();
board_init_info();
+ enable_interrupts();
+
bd->bi_flashstart = 0;
bd->bi_flashsize = 0;
bd->bi_flashoffset = 0;
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);
}