X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=irq.c;h=31daa980e5ac3d7d6547d38d3b97aa56f7ae96dd;hb=c949f0a1a871099315a20555f8f249edc24f0bcb;hp=9ab1559505b5a14be4b6619389a1a7db569a9683;hpb=0a6cd808a414dab189b1ffac82df6651dfb4ae34;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<