summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h')
-rw-r--r--dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h b/dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h
new file mode 100644
index 00000000..5fe3f4ea
--- /dev/null
+++ b/dev/kernel/FirmwareKit/CoreBoot/CoreBoot.h
@@ -0,0 +1,31 @@
+/* -------------------------------------------
+
+ Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <NewKit/Defines.h>
+
+namespace Firmware::Detail::CoreBoot
+{
+ using namespace NeOS;
+
+ struct LEHeader;
+
+ /// @brief Linear Executable Header
+ /// @author Amlal EL Mahrouss
+ struct ATTRIBUTE(aligned(4)) LEHeader
+ {
+ const Char fMagic[2]; // magic number
+ const Char fName[10]; // operating system name
+ const UInt32 fRevision; // firmware revision
+ const UInt32 fStartAddress; // start address (master/slave(s) thread)
+
+#ifdef NE_IS_EXTENDED_COREBOOT
+ const UIntPtr fMasterStructure; // master structure for MP/PM and device tree and such (ARM)
+ const UIntPtr fMasterStructureVersion; // master structure version.
+#endif
+ };
+} // namespace Firmware::Detail::CoreBoot