summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-20 19:23:45 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-20 19:23:45 +0200
commitb2ebf6c7985534968b3238e06e0e43a70b2bebb8 (patch)
treed55b65c6cfdc9a018652894a9a46462eb1c2af27 /Kernel/Thread.h
parentc9b86be1ccadef17b103a3ee6ba557dd37b8235f (diff)
downloadserenity-b2ebf6c7985534968b3238e06e0e43a70b2bebb8.zip
Kernel: Shrink Thread by making kernel resume TSS heap-allocated.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index 1a898dd82f..c0609daea0 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -6,6 +6,7 @@
#include <Kernel/UnixTypes.h>
#include <AK/AKString.h>
#include <AK/InlineLinkedList.h>
+#include <AK/OwnPtr.h>
#include <AK/RetainPtr.h>
#include <AK/Vector.h>
@@ -138,7 +139,7 @@ private:
Process& m_process;
int m_tid { -1 };
TSS32 m_tss;
- TSS32 m_tss_to_resume_kernel;
+ OwnPtr<TSS32> m_tss_to_resume_kernel;
FarPtr m_far_ptr;
dword m_ticks { 0 };
dword m_ticks_left { 0 };