diff options
author | Drew Stratford <drewstratford@outlook.com> | 2019-09-04 14:31:38 +1200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-05 16:37:09 +0200 |
commit | 259a1d56b04809690716fe0576fad9ea12782ce9 (patch) | |
tree | aaa41d51efd7e97e35feb21ba01911572800cadb /Kernel/Thread.h | |
parent | bf43d94a2f0fc761158b0049e97fb69d8d273c8c (diff) | |
download | serenity-259a1d56b04809690716fe0576fad9ea12782ce9.zip |
Thread: added member m_kernel_stack_top.
This value stores the top of a threads kernel_stack.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index b52a3250fe..6c1f481212 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -273,6 +273,7 @@ public: u32 ticks_left() const { return m_ticks_left; } u32 kernel_stack_base() const { return m_kernel_stack_base; } + u32 kernel_stack_top() const { return m_kernel_stack_top; } u32 kernel_stack_for_signal_handler_base() const { return m_kernel_stack_for_signal_handler_region ? m_kernel_stack_for_signal_handler_region->vaddr().get() : 0; } void set_selector(u16 s) { m_far_ptr.selector = s; } @@ -329,6 +330,7 @@ private: u32 m_pending_signals { 0 }; u32 m_signal_mask { 0 }; u32 m_kernel_stack_base { 0 }; + u32 m_kernel_stack_top { 0 }; RefPtr<Region> m_userspace_stack_region; RefPtr<Region> m_kernel_stack_region; RefPtr<Region> m_kernel_stack_for_signal_handler_region; |