Clear IPC registers on shutdown to fix system menu crash

This commit is contained in:
marcan 2009-03-06 06:22:46 +01:00 committed by bushing
parent 766e793372
commit 425f540362

5
ipc.c
View File

@ -230,8 +230,13 @@ void ipc_initialize(void)
irq_enable(IRQ_IPC); irq_enable(IRQ_IPC);
write32(HW_IPC_ARMCTRL, IPC_CTRL_INT_RECV); write32(HW_IPC_ARMCTRL, IPC_CTRL_INT_RECV);
} }
void ipc_shutdown(void) void ipc_shutdown(void)
{ {
write32(HW_IPC_ARMMSG, 0);
write32(HW_IPC_PPCMSG, 0);
write32(HW_IPC_PPCCTRL, IPC_CTRL_SENT|IPC_CTRL_RECV);
write32(HW_IPC_ARMCTRL, IPC_CTRL_SENT|IPC_CTRL_RECV);
irq_disable(IRQ_IPC); irq_disable(IRQ_IPC);
} }