summaryrefslogtreecommitdiffhomepage
path: root/Public/SDK/SystemKit/ThreadAPI.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 22:49:17 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 22:50:22 +0100
commit39040dde3a6eef2e9b08ce6d3c5ca23aa4566ce6 (patch)
tree439405d1f2546320d6a2954f952284089acc398d /Public/SDK/SystemKit/ThreadAPI.hxx
parent59f1fd3491c91cca9c47e9a7e61d454b685bfb6a (diff)
Public: ZipKit compiles correctly now.
Public: Also Did reworked System APIs. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Public/SDK/SystemKit/ThreadAPI.hxx')
-rw-r--r--Public/SDK/SystemKit/ThreadAPI.hxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/Public/SDK/SystemKit/ThreadAPI.hxx b/Public/SDK/SystemKit/ThreadAPI.hxx
new file mode 100644
index 00000000..f99da698
--- /dev/null
+++ b/Public/SDK/SystemKit/ThreadAPI.hxx
@@ -0,0 +1,42 @@
+/*
+ * ========================================================
+ *
+ * h-core
+ * Copyright Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+//
+// Created by Amlal on 1/27/24.
+//
+
+#ifndef __THREAD_API__
+#define __THREAD_API__
+
+#include <NewKit/Defines.hpp>
+
+namespace hCore
+{
+/// @brief Thread Information Block for Local Storage.
+/// Located in GS on AMD64, Virtual Address 0x10000 (64x0, 32x0, ARM64)
+struct ThreadInformationBlock final
+{
+ const Char TIB_NAME[255]; // Module Name
+ const UIntPtr TIB_START; // Start Address
+ const UIntPtr TIB_ALLOC; // Allocation Heap
+ const UIntPtr TIB_STACK; // Stack Pointer.
+ const Int32 TIB_ARCH; // Architecture and/or platform.
+};
+
+enum
+{
+ kPC_IA64,
+ kPC_AMD64 = kPC_IA64,
+ kPC_ARM,
+ kMACS_64x0,
+ kMACS_32x0,
+};
+} // namespace hCore
+
+#endif // __THREAD_API__