X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=irq.c;h=31daa980e5ac3d7d6547d38d3b97aa56f7ae96dd;hb=316456cf22ec6843102b39cb4a33b4bb3e484d45;hp=7288be0224a890c9058ac3b70e8dc7ff2c7d9334;hpb=6c7f1b47248745511987036b3aa20b5055c39c22;p=ppcskel.git diff --git a/irq.c b/irq.c index 7288be0..31daa98 100644 --- a/irq.c +++ b/irq.c @@ -14,8 +14,9 @@ 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) { @@ -27,12 +28,19 @@ void irq_initialize(void) write32(HW_PPCIRQMASK, 0); write32(HW_PPCIRQFLAG, 0xffffffff); - printf("PPCIRQMASK: 0x%08X\n", read32(HW_PPCIRQMASK)); - - - //??? -- needed?! - //write32(HW_ARMIRQFLAG, 0); // this does nothing? - write32(HW_PPCIRQMASK+0x20, 0); + /* ??? -- needed?! + * in mini they do + * + * write32(HW_ARMIRQMASK+0x04, 0); + * write32(HW_ARMIRQMASK+0x20, 0); + * + * + * may it's here following; on the other + * hand it's already done by mini... + * + * write32(HW_PPCIRQMASK+0x04+0x08, 0); + * write32(HW_PPCIRQMASK+0x20+0x08, 0); + */ _CPU_ISR_Enable() } @@ -48,19 +56,19 @@ void irq_handler(void) { u32 enabled = read32(BW_PI_IRQMASK); u32 flags = read32(BW_PI_IRQFLAG); - printf("flags1: 0x%08X\n", flags); flags = flags & enabled; if (flags & (1<