diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-20 08:42:45 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-20 08:42:45 +0100 |
| commit | e718262c5e5163378ef92469db9b94908dccf12b (patch) | |
| tree | 98da3dbd414c14ff86e1d1c0f459285b78f63ec8 /dev/ZKAKit/FirmwareKit | |
| parent | ade3a2578ca8d6836b8e73160455df80d49cf045 (diff) | |
ADD: Add CoreBoot header, need to add missing fields for specific platforms.
Diffstat (limited to 'dev/ZKAKit/FirmwareKit')
| -rw-r--r-- | dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h b/dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h new file mode 100644 index 00000000..b3f5a8b1 --- /dev/null +++ b/dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h @@ -0,0 +1,27 @@ +/* ------------------------------------------- + + Copyright (C) 2024, EL Mahrouss Logic, all rights reserved. + +------------------------------------------- */ + +#pragma once + +#include <NewKit/Defines.h> + +namespace Kernel +{ + /// @brief Linear Executable Header + /// @author EL Mahrouss Logic + struct ATTRIBUTE(aligned(4)) mp_boot_header + { + 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 ZKA_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 Kernel
\ No newline at end of file |
