diff options
| author | amlal <amlal@el-mahrouss-logic.com> | 2024-03-08 12:35:05 +0000 |
|---|---|---|
| committer | amlal <amlal@el-mahrouss-logic.com> | 2024-03-08 12:43:36 +0000 |
| commit | 6f5eddc17785607e1cd5e8245d576874f1939beb (patch) | |
| tree | dbc1f113be4e90b0de8de6916c7bd5084f6f604b /Private/KernelKit/CodeManager.hpp | |
| parent | 842d35cdd8511adf379c4ccb52010b9b71e0757f (diff) | |
HCR-14: Fixes and improvements.
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit/CodeManager.hpp')
| -rw-r--r-- | Private/KernelKit/CodeManager.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Private/KernelKit/CodeManager.hpp b/Private/KernelKit/CodeManager.hpp index 4bbbc350..ed42517a 100644 --- a/Private/KernelKit/CodeManager.hpp +++ b/Private/KernelKit/CodeManager.hpp @@ -8,6 +8,7 @@ Revision History: 30/01/24: Added file (amlel) + 3/8/24: Add UPP struct. ------------------------------------------- */ @@ -16,3 +17,17 @@ #include <KernelKit/PECodeManager.hxx> #include <KernelKit/PEFCodeManager.hxx> #include <KernelKit/PEFSharedObject.hxx> + +#define kUPPNameLen 64 + +namespace HCore { +/// \brief Much like Mac OS's UPP. +/// This is read-only by design. +/// It handles different kind of code. +/// ARM <-> AMD64 for example. +typedef struct UniversalProcedureTable final { + const Char NAME[kUPPNameLen]; + const VoidPtr TRAP; + const SizeT ARCH; +} PACKED UniversalProcedureTableType; +} // namespace HCore
\ No newline at end of file |
