mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
sigreturn: disable interrupts before switch
This commit is contained in:
@@ -26,8 +26,6 @@ __attribute__((noreturn)) void syscall_sigreturn(context_t *context) {
|
||||
|
||||
arch_extracontext_copy(¤t_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,
|
||||
|
||||
Reference in New Issue
Block a user