summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-07 20:26:53 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-07 20:26:53 +0100
commit0d8262cbab6b72c41315c1bae11afd2b62ea353e (patch)
treebe0527ace31a04e847b10e8884ac96ffe8024244 /Kernel/Thread.cpp
parent2ec8b4e1776c5b6e6d9a071f8456866621af572f (diff)
downloadserenity-0d8262cbab6b72c41315c1bae11afd2b62ea353e.zip
Kernel: Remove a handful of unused things from Thread
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index d42d4ce51e..fb1201d288 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -466,12 +466,6 @@ void Thread::check_dispatch_pending_signal()
}
}
-bool Thread::has_pending_signal(u8 signal) const
-{
- ScopedSpinLock lock(g_scheduler_lock);
- return pending_signals_for_state() & (1 << (signal - 1));
-}
-
u32 Thread::pending_signals() const
{
ScopedSpinLock lock(g_scheduler_lock);
@@ -857,13 +851,6 @@ void Thread::set_default_signal_dispositions()
m_signal_action_data[SIGWINCH].handler_or_sigaction = VirtualAddress(SIG_IGN);
}
-bool Thread::push_value_on_stack(FlatPtr value)
-{
- m_tss.esp -= 4;
- FlatPtr* stack_ptr = (FlatPtr*)m_tss.esp;
- return copy_to_user(stack_ptr, &value);
-}
-
RegisterState& Thread::get_register_dump_from_stack()
{
auto* trap = current_trap();