LIB = $(obj)lib$(CPU).a
START = start.o
-SOBJS = dcache.o icache.o irq.o disable_int.o enable_int.o
+#SOBJS = dcache.o icache.o irq.o disable_int.o enable_int.o
+SOBJS = dcache.o icache.o irq.o
COBJS = cpu.o interrupts.o cache.o exception.o timer.o
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
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;
}
#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];
intc_init ();
#ifdef CFG_TIMER_0
timer_init ();
+#endif
+#ifdef CFG_FSL_2
+ fsl_init2 ();
#endif
enable_interrupts ();
return 0;