mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-16 08:29:25 +01:00
Clear IPC registers on shutdown to fix system menu crash
This commit is contained in:
parent
766e793372
commit
425f540362
5
ipc.c
5
ipc.c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user