From 5468ca71a59c9e24c1d392554e8f97f0c1705394 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 10 Mar 2024 15:41:08 +0100 Subject: Kernel: Reworked StorageKit to add AHCI support. Signed-off-by: Amlal El Mahrouss --- Public/Kits/System.Core/ThreadAPI.hxx | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Public/Kits/System.Core/ThreadAPI.hxx (limited to 'Public/Kits/System.Core/ThreadAPI.hxx') diff --git a/Public/Kits/System.Core/ThreadAPI.hxx b/Public/Kits/System.Core/ThreadAPI.hxx new file mode 100644 index 00000000..ec15a64c --- /dev/null +++ b/Public/Kits/System.Core/ThreadAPI.hxx @@ -0,0 +1,36 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +// +// Created by Amlal on 1/27/24. +// + +#ifndef __THREAD_API__ +#define __THREAD_API__ + +#include + +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 Name[255]; // Module Name + const UIntPtr StartAddress; // Start Address + const UIntPtr StartHeap; // Allocation Heap + const UIntPtr StartStack; // Stack Pointer. + const Int32 Arch; // Architecture and/or platform. +}; + +enum { + kPC_IA64, + kPC_AMD64 = kPC_IA64, + kPC_ARM, + kMACS_64x0, + kMACS_32x0, +}; +} // namespace HCore + +#endif // __THREAD_API__ -- cgit v1.2.3