sigreturn: disable interrupts before switch

This commit is contained in:
Matheus
2026-03-20 21:25:03 -03:00
parent 0d941fd8f0
commit d0bb48c162
-2
View File
@@ -26,8 +26,6 @@ __attribute__((noreturn)) void syscall_sigreturn(context_t *context) {
arch_extracontext_copy(&current_thread()->extracontext, &sigframe->extracontext);
ARCH_CONTEXT_THREADLOAD(current_thread(), context);
interrupt_set(true);
arch_context_switch(&sigframe->context);
// if we were to return normally, CTX_RET and CTX_ERRNO would be corrupted,