summaryrefslogtreecommitdiff
path: root/cpu/at32ap/interrupts.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-11-20 15:53:10 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-04-14 15:20:27 +0200
commit1f4f2121c2685182eb87fa9a9b799d1917387a1c (patch)
tree0382acf54d9e4c1eb039bd97cd4dc37004a5aa96 /cpu/at32ap/interrupts.c
parentdf548d3c3e2bbc40258713167859ffc2ce99a900 (diff)
downloadu-boot-imx-1f4f2121c2685182eb87fa9a9b799d1917387a1c.zip
u-boot-imx-1f4f2121c2685182eb87fa9a9b799d1917387a1c.tar.gz
u-boot-imx-1f4f2121c2685182eb87fa9a9b799d1917387a1c.tar.bz2
AVR32: Relocate u-boot to SDRAM
Relocate the u-boot image into SDRAM like everyone else does. This means that we can handle much larger .data and .bss than we used to. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'cpu/at32ap/interrupts.c')
-rw-r--r--cpu/at32ap/interrupts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu/at32ap/interrupts.c b/cpu/at32ap/interrupts.c
index 85420a4..c9e0499 100644
--- a/cpu/at32ap/interrupts.c
+++ b/cpu/at32ap/interrupts.c
@@ -115,9 +115,12 @@ void udelay(unsigned long usec)
static int set_interrupt_handler(unsigned int nr, void (*handler)(void),
unsigned int priority)
{
+ extern void _evba(void);
unsigned long intpr;
unsigned long handler_addr = (unsigned long)handler;
+ handler_addr -= (unsigned long)&_evba;
+
if ((handler_addr & HANDLER_MASK) != handler_addr
|| (priority & INTLEV_MASK) != priority)
return -EINVAL;