diff --git a/kernel/src/arch/x86_64/Thread.cpp b/kernel/src/arch/x86_64/Thread.cpp index 5474913b..3cf6913b 100644 --- a/kernel/src/arch/x86_64/Thread.cpp +++ b/kernel/src/arch/x86_64/Thread.cpp @@ -106,9 +106,6 @@ bool Thread::deliver_signal(int signo, Registers* current_regs) memcpy(®s, current_regs, sizeof(regs)); - kinfoln("signal: delivering signal %d for thread %d, ip=%p, sp=%p, handler=%p, sigreturn=%p", signo, id, - (void*)regs.rip, (void*)regs.rsp, (void*)handler.sa_handler, (void*)handler.__sa_sigreturn); - regs.rsp -= 128; // Skip the red zone fp_data.save(); @@ -165,7 +162,5 @@ void Thread::sigreturn(Registers* current_regs) fp_data.restore(); - kinfoln("sigreturn: restored program state, sp=%p, ip=%p", (void*)regs.rsp, (void*)regs.rip); - memcpy(current_regs, ®s, sizeof(regs)); } diff --git a/kernel/src/thread/Thread.cpp b/kernel/src/thread/Thread.cpp index c3514560..8afa6812 100644 --- a/kernel/src/thread/Thread.cpp +++ b/kernel/src/thread/Thread.cpp @@ -171,13 +171,8 @@ void Thread::process_pending_signals(Registers* current_regs) if (pending_signals.get(i)) { pending_signals.set(i, false); - kinfoln("signal: executing signal %d for thread %d", signo, id); auto handler = signal_handlers[i]; - if (signo != SIGKILL && signo != SIGSTOP && handler.sa_handler == SIG_IGN) - { - kinfoln("signal: ignoring signal (handler=SIG_IGN)"); - return; - } + if (signo != SIGKILL && signo != SIGSTOP && handler.sa_handler == SIG_IGN) return; if (handler.sa_handler == SIG_DFL || signo == SIGKILL || signo == SIGSTOP) { default_signal: @@ -187,8 +182,6 @@ void Thread::process_pending_signals(Registers* current_regs) return; } - kinfoln("signal: using default behavior (handler=SIG_DFL)"); - auto action = default_actions[i]; switch (action) {