From baf2afd8cd672dcb9c13d956dfdd73b61dfee558 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 19 Mar 2024 10:05:31 +0100 Subject: unstable, secret: See below. System.Core: - Add RunTime init function. - Add ReadMe.md Kernel: - Improve TLS code, use Encoder class instead of casting directly. - Refactor process team to include processscheduler.hpp instead. ObjectKit: - Rename Object.hxx to ObjectKit.hxx Builtins/AHCI: - Rename API.hxx to Interface.hxx Signed-off-by: Amlal El Mahrouss --- Public/Kits/System.Core/Threading.hxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Public/Kits/System.Core/Threading.hxx') diff --git a/Public/Kits/System.Core/Threading.hxx b/Public/Kits/System.Core/Threading.hxx index 5d5ed0a6..bddbbf3f 100644 --- a/Public/Kits/System.Core/Threading.hxx +++ b/Public/Kits/System.Core/Threading.hxx @@ -14,17 +14,16 @@ #include /// @brief Thread Information Block variant for scheduling. -struct ThreadInformationBlock final { - const CHAR Name[255]; // Module Name +struct PACKED ThreadInformationBlock final { const UINT_PTR StartAddress; // Start Address const UINT_PTR StartHeap; // Allocation Heap const UINT_PTR StartStack; // Stack Pointer. - const DWORD Arch; // Architecture and/or platform. - const WORD TID; // Execution Thread ID. + const WORD ThreadID; // Execution Thread ID. }; ThreadInformationBlock* HcCreateThread(_Input PVOID Start, - _Optional _InOut PVOID HeapOpt, _Optional _InOut PVOID StackOpt); + _Optional _InOut PVOID HeapOpt, + _Optional _InOut PVOID StackOpt); BOOL HcDestroyThread(_Input ThreadInformationBlock* TIB); -- cgit v1.2.3