syscalls: fixes to prevent exceptions in syscalls_signalPost
JIRA:
@@ -483,7 +483,6 @@ int syscalls_resourceDestroy(void *ustack)
*/
-
int syscalls_interrupt(void *ustack)
{
unsigned int n;
@@ -802,8 +801,9 @@ int syscalls_signalPost(void *ustack)
err = threads_sigpost(proc, t, signal);
proc_put(proc);
+ if (t != NULL)
threads_put(t);
- hal_cpuReschedule(NULL, NULL);
+
return err;
}
