summaryrefslogtreecommitdiff
path: root/cpu/microblaze/timer.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-05-07 17:22:25 +0200
committerMichal Simek <monstr@monstr.eu>2007-05-07 17:22:25 +0200
commit42efed6130c8fcf7da881385b5427065d2801757 (patch)
tree091c29ef7ddf2420171455327c353654f2d8162f /cpu/microblaze/timer.c
parent48fbd3a4cdabbebc1debd7eed73c00c2caf914f6 (diff)
downloadu-boot-imx-42efed6130c8fcf7da881385b5427065d2801757.zip
u-boot-imx-42efed6130c8fcf7da881385b5427065d2801757.tar.gz
u-boot-imx-42efed6130c8fcf7da881385b5427065d2801757.tar.bz2
fix: interrupt handler for multiple sources
Diffstat (limited to 'cpu/microblaze/timer.c')
-rw-r--r--cpu/microblaze/timer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpu/microblaze/timer.c b/cpu/microblaze/timer.c
index be4fd57..ab1cb12 100644
--- a/cpu/microblaze/timer.c
+++ b/cpu/microblaze/timer.c
@@ -24,6 +24,7 @@
#include <common.h>
#include <asm/microblaze_timer.h>
+#include <asm/microblaze_intc.h>
volatile int timestamp = 0;
@@ -44,9 +45,6 @@ void set_timer (ulong t)
#ifdef CFG_INTC_0
#ifdef CFG_TIMER_0
-extern void install_interrupt_handler (int irq, interrupt_handler_t * hdlr,
- void *arg);
-
microblaze_timer_t *tmr = (microblaze_timer_t *) (CFG_TIMER_0_ADDR);
void timer_isr (void *arg)