mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Signal stacks are lazily allocated so don't crash in getter.
This commit is contained in:
parent
486c675850
commit
9e2116ff6b
Notes:
sideshowbarker
2024-07-19 14:09:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9e2116ff6b9
@ -102,7 +102,7 @@ public:
|
||||
dword ticks_left() const { return m_ticks_left; }
|
||||
|
||||
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_state(State s) { m_state = s; }
|
||||
|
Loading…
Reference in New Issue
Block a user