delete task only when it's not in running.

This commit is contained in:
TXuian
2024-04-26 17:39:23 +08:00
parent 03039cbdab
commit a7cbb0d041
15 changed files with 175 additions and 160 deletions

View File

@@ -35,7 +35,10 @@ IPC_SERVER_INTERFACE(Ipc_intr_3, 1);
IPC_SERVER_REGISTER_INTERFACES(IpcSwIntrHandler, 1, Ipc_intr_3);
int main()
{
register_irq(SW_INTERRUPT_3, Ipc_intr_3);
if (register_irq(SW_INTERRUPT_3, Ipc_intr_3) == -1) {
printf("TEST_SW_HDLR: bind failed");
exit();
}
ipc_server_loop(&IpcSwIntrHandler);
exit();