summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources/ThreadScheduler.cxx
blob: fe2a478218f4fe6ea232527357b1c9909b26dae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* -------------------------------------------

	Copyright ZKA Technologies.

------------------------------------------- */

#include <KernelKit/ProcessScheduler.hxx>
#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;
    };
}