1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

Thread.cpp: add method get_RegisterDump_from_stack().

This refactors some the RegisterDump code from dispatch_signal
into a stand-alone function, allowing for better reuse.
This commit is contained in:
Drew Stratford 2019-11-02 22:11:41 +13:00 committed by Andreas Kling
parent a6e9119537
commit 44f22c99ef
2 changed files with 11 additions and 4 deletions

View file

@ -210,6 +210,8 @@ public:
u32 frame_ptr() const { return m_tss.ebp; }
u32 stack_ptr() const { return m_tss.esp; }
RegisterDump& get_RegisterDump_from_stack();
u16 selector() const { return m_far_ptr.selector; }
TSS32& tss() { return m_tss; }
const TSS32& tss() const { return m_tss; }