X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=blobdiff_plain;f=ohci.c;h=33d6034ae80d451b6fc5faf2e55f68727007b1b5;hp=55b887ec84ac9fd245f256ecdc74c26e66aba421;hb=e256c484ff2f56a6a58547c88b3763e8f2ae2c13;hpb=3169c95c4ddd84c74a397760d617e840530c13e0 diff --git a/ohci.c b/ohci.c index 55b887e..33d6034 100644 --- a/ohci.c +++ b/ohci.c @@ -14,7 +14,6 @@ Copyright (C) 2009 Sebastian Falbesoner #include "irq.h" #define gecko_printf printf -#define set32(address, flags) write32(address, read32(address) | flags) #define dma_addr(address) (u32)address @@ -70,10 +69,7 @@ void ohci_init() { within 2msec else HC enters RESUME */ - //u32 cookie = irq_kill(); - u32 cookie; - _CPU_ISR_Disable(cookie); - + u32 cookie = irq_kill(); /* Tell the controller where the control and bulk lists are * The lists are empty now. */ @@ -107,11 +103,8 @@ void ohci_init() { write32(OHCI0_HC_INT_ENABLE, OHCI_INTR_INIT); - //irq_restore(cookie); - _CPU_ISR_Restore(cookie); - + irq_restore(cookie); dbg_op_state(); - }