summaryrefslogtreecommitdiff
path: root/Kernel
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
parent2ec8b4e1776c5b6e6d9a071f8456866621af572f (diff)
downloadserenity-0d8262cbab6b72c41315c1bae11afd2b62ea353e.zip
Kernel: Remove a handful of unused things from Thread
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Thread.cpp13
-rw-r--r--Kernel/Thread.h6
2 files changed, 0 insertions, 19 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();
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index e83d289735..6ea94a044e 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -47,7 +47,6 @@
#include <Kernel/TimerQueue.h>
#include <Kernel/UnixTypes.h>
#include <LibC/fd_set.h>
-#include <LibELF/AuxiliaryVector.h>
namespace Kernel {
@@ -785,8 +784,6 @@ public:
u32 affinity() const { return m_cpu_affinity; }
void set_affinity(u32 affinity) { m_cpu_affinity = affinity; }
- u32 stack_ptr() const { return m_tss.esp; }
-
RegisterState& get_register_dump_from_stack();
const RegisterState& get_register_dump_from_stack() const { return const_cast<Thread*>(this)->get_register_dump_from_stack(); }
@@ -1003,17 +1000,14 @@ public:
DispatchSignalResult dispatch_signal(u8 signal);
void check_dispatch_pending_signal();
[[nodiscard]] bool has_unmasked_pending_signals() const { return m_have_any_unmasked_pending_signals.load(AK::memory_order_consume); }
- void terminate_due_to_signal(u8 signal);
[[nodiscard]] bool should_ignore_signal(u8 signal) const;
[[nodiscard]] bool has_signal_handler(u8 signal) const;
- [[nodiscard]] bool has_pending_signal(u8 signal) const;
u32 pending_signals() const;
u32 pending_signals_for_state() const;
FPUState& fpu_state() { return *m_fpu_state; }
void set_default_signal_dispositions();
- bool push_value_on_stack(FlatPtr);
KResult make_thread_specific_region(Badge<Process>);