Kernel: Signal stacks are lazily allocated so don't crash in getter.

This commit is contained in:
Andreas Kling 2019-05-14 12:17:59 +02:00
parent 486c675850
commit 9e2116ff6b
Notes: sideshowbarker 2024-07-19 14:09:10 +09:00

View File

@ -102,7 +102,7 @@ public:
dword ticks_left() const { return m_ticks_left; } dword ticks_left() const { return m_ticks_left; }
dword kernel_stack_base() const { return m_kernel_stack_region->laddr().get(); } dword kernel_stack_base() const { return m_kernel_stack_region->laddr().get(); }
dword kernel_stack_for_signal_handler_base() const { return m_kernel_stack_for_signal_handler_region->laddr().get(); } dword kernel_stack_for_signal_handler_base() const { return m_kernel_stack_for_signal_handler_region ? m_kernel_stack_for_signal_handler_region->laddr().get() : 0; }
void set_selector(word s) { m_far_ptr.selector = s; } void set_selector(word s) { m_far_ptr.selector = s; }
void set_state(State s) { m_state = s; } void set_state(State s) { m_state = s; }