summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/CodeManager.hpp
diff options
context:
space:
mode:
authoramlal <amlal@el-mahrouss-logic.com>2024-03-08 12:35:05 +0000
committeramlal <amlal@el-mahrouss-logic.com>2024-03-08 12:43:36 +0000
commit6f5eddc17785607e1cd5e8245d576874f1939beb (patch)
treedbc1f113be4e90b0de8de6916c7bd5084f6f604b /Private/KernelKit/CodeManager.hpp
parent842d35cdd8511adf379c4ccb52010b9b71e0757f (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.hpp15
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