From e718262c5e5163378ef92469db9b94908dccf12b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 20 Nov 2024 08:42:45 +0100 Subject: ADD: Add CoreBoot header, need to add missing fields for specific platforms. --- dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dev/ZKAKit/FirmwareKit/CoreBoot/CoreBoot.h (limited to 'dev/ZKAKit/FirmwareKit/CoreBoot') 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 + +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 -- cgit v1.2.3