X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=irq.c;h=31daa980e5ac3d7d6547d38d3b97aa56f7ae96dd;hb=0a6c9cd0c045cc9481147531a8e3cc08aef20a98;hp=9ab1559505b5a14be4b6619389a1a7db569a9683;hpb=e256c484ff2f56a6a58547c88b3763e8f2ae2c13;p=ppcskel.git diff --git a/irq.c b/irq.c index 9ab1559..31daa98 100644 --- a/irq.c +++ b/irq.c @@ -14,24 +14,33 @@ Copyright (C) 2009 Andre Heider "dhewg" #include "hollywood.h" #include "ipc.h" #include "bootmii_ppc.h" -//debug only -#include "printf.h" +#include "usb/host/host.h" + +void show_frame_no(void); void irq_initialize(void) { - // enable OHCI0 interrupt on hollywood-pic + // clear flipper-pic (processor interface) + write32(BW_PI_IRQMASK, 0); + write32(BW_PI_IRQFLAG, 0xffffffff); + + // clear hollywood-pic write32(HW_PPCIRQMASK, 0); write32(HW_PPCIRQFLAG, 0xffffffff); - // enable RESET and PIC (#14) interrupts on processor interface - write32(BW_PI_IRQFLAG, 0xffffffff); -#define BW_PI_IRQ_RESET 1 -#define BW_PI_IRQ_HW 14 - write32(BW_PI_IRQMASK, (1<