sigreturn fix

This commit is contained in:
Matheus
2024-05-17 19:19:37 -03:00
parent 1b63e9b436
commit b2644df9c2
2 changed files with 20 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@ __attribute__((noreturn)) void syscall_sigreturn(context_t *context) {
memcpy(&_cpu()->thread->extracontext, &sigframe.extracontext, sizeof(extracontext_t));
ARCH_CONTEXT_THREADLOAD(_cpu()->thread, context);
interrupt_set(true);
arch_context_switch(&sigframe.context);
// if we were to return normally, CTX_RET and CTX_ERRNO would be corrupted,