summaryrefslogtreecommitdiffstats
path: root/cpu/microblaze/interrupts.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-05-07 19:12:43 +0200
committerMichal Simek <monstr@monstr.eu>2007-05-07 19:12:43 +0200
commitfb7c2dbef02c9f6f8d7b04ec4c2bfb91418b9c01 (patch)
tree613782e94bacc9e87cb774555ce143fbddefb8d6 /cpu/microblaze/interrupts.c
parent42efed6130c8fcf7da881385b5427065d2801757 (diff)
downloadtalos-obmc-uboot-fb7c2dbef02c9f6f8d7b04ec4c2bfb91418b9c01.tar.gz
talos-obmc-uboot-fb7c2dbef02c9f6f8d7b04ec4c2bfb91418b9c01.zip
fix: clean interrupt
Diffstat (limited to 'cpu/microblaze/interrupts.c')
-rw-r--r--cpu/microblaze/interrupts.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/cpu/microblaze/interrupts.c b/cpu/microblaze/interrupts.c
index 115e58d7f0..c0c92ec559 100644
--- a/cpu/microblaze/interrupts.c
+++ b/cpu/microblaze/interrupts.c
@@ -36,12 +36,14 @@ extern void microblaze_enable_interrupts (void);
void enable_interrupts (void)
{
- microblaze_enable_interrupts ();
+ __asm__ __volatile__ ("msrset r0, 0x2");
+ //microblaze_enable_interrupts ();
}
int disable_interrupts (void)
{
- microblaze_disable_interrupts ();
+ __asm__ __volatile__ ("msrclr r0, 0x2");
+ //microblaze_disable_interrupts ();
return 0;
}
@@ -49,6 +51,10 @@ int disable_interrupts (void)
#ifdef CFG_TIMER_0
extern void timer_init (void);
#endif
+#ifdef CFG_FSL_2
+extern void fsl_init2 (void);
+#endif
+
static struct irq_action vecs[CFG_INTC_0_NUM];
@@ -141,6 +147,9 @@ int interrupts_init (void)
#ifdef CFG_TIMER_0
timer_init ();
#endif
+#ifdef CFG_FSL_2
+ fsl_init2 ();
+#endif
enable_interrupts ();
return 0;
}
OpenPOWER on IntegriCloud