From 849af3db3b0d0c1edd3d32359be21785e3465bf2 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 19 Aug 2024 11:08:35 +0200 Subject: [IMP] + Add the thread header block, which contains informations about a list of threads inside a process. + Add WINDOW structure to keep track of Windows as well. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Sources/ThreadScheduler.cxx | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'dev/ZKA/Sources/ThreadScheduler.cxx') 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 -#include \ No newline at end of file +#include + +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; + }; +} -- cgit v1.2.3