add macro for u32 little endian access from ppc
[ppcskel.git] / irq.c
diff --git a/irq.c b/irq.c
index 389ae75fc81358e79f6a5528c2e26799d573173b..4f15bb8b9f4e63e5f8114954125f3f043bf1c5f7 100644 (file)
--- a/irq.c
+++ b/irq.c
@@ -14,7 +14,7 @@ Copyright (C) 2009                    Andre Heider "dhewg" <dhewg@wiibrew.org>
 #include "hollywood.h"
 #include "ipc.h"
 #include "bootmii_ppc.h"
-#include "ohci.h"
+#include "usb/host/host.h"
 
 void irq_initialize(void)
 {
@@ -111,12 +111,12 @@ void irq_handler(void)
                        //sdhc_irq();
                }
                if (hw_flags & IRQF_OHCI0) {
-                       ohci0_irq();
+                       hcdi_irq();
                        write32(HW_PPCIRQFLAG, IRQF_OHCI0);
                }
                if (hw_flags & IRQF_OHCI1) {
-                       write32(HW_PPCIRQFLAG, IRQF_OHCI1);
                        //TODO: ohci1_irq();
+                       write32(HW_PPCIRQFLAG, IRQF_OHCI1);
                }
 
                hw_flags &= ~IRQF_ALL;
@@ -157,5 +157,6 @@ u32 irq_kill() {
 
 void irq_restore(u32 cookie) {
        _CPU_ISR_Restore(cookie);
+       _CPU_ISR_Enable(); //wtf :/
 }