summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources/ThreadScheduler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ZKA/Sources/ThreadScheduler.cxx')
-rw-r--r--dev/ZKA/Sources/ThreadScheduler.cxx29
1 files changed, 28 insertions, 1 deletions
diff --git a/dev/ZKA/Sources/ThreadScheduler.cxx b/dev/ZKA/Sources/ThreadScheduler.cxx
index fb822a68..a6dfd2b9 100644
--- a/dev/ZKA/Sources/ThreadScheduler.cxx
+++ b/dev/ZKA/Sources/ThreadScheduler.cxx
@@ -5,4 +5,31 @@
------------------------------------------- */
#include <KernelKit/ProcessScheduler.hxx>
-#include <KernelKit/MP.hxx> \ No newline at end of file
+#include <KernelKit/MP.hxx>
+
+namespace Kernel::Detail
+{
+ /// \brief Process thread information.
+ struct THREAD_HEADER_BLOCK final
+ {
+ STATIC constexpr SizeT cMaxLen = 256;
+
+ // Status
+ Char fName[cMaxLen] = { "THREAD #0 (PROCESS 0)" };
+
+ ProcessStatus fThreadStatus;
+
+ // Information
+ Int64 fThreadID;
+
+ // Code buffers.
+ UIntPtr fCode;
+ UIntPtr fStack;
+ UIntPtr fBSS;
+ UIntPtr fProcessheader;
+
+ // GX buffers.
+ UIntPtr fTGB;
+ UIntPtr fTGBSize;
+ };
+}