diff options
| author | Amlal <amlal@nekernel.org> | 2025-08-17 08:16:29 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-08-17 08:16:29 +0200 |
| commit | 0fdc3eeb3afed04f9ffd36b4b2760dac61d1b098 (patch) | |
| tree | 3e4887506ba7ce77fad55e59f7f643191d70cdf2 /dev/kernel/KernelKit/ZXD.h | |
| parent | ef8603be406c84f9bf8d777109d7c7a91e019139 (diff) | |
feat: kernel: (HALKit/KernelKit): Scheduler, and dylib improvements.
feat: ZXD: Define the ZXD format. TeX file for PEF and ZXD to be written soon.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/ZXD.h')
| -rw-r--r-- | dev/kernel/KernelKit/ZXD.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dev/kernel/KernelKit/ZXD.h b/dev/kernel/KernelKit/ZXD.h index 10af568b..f1c99a21 100644 --- a/dev/kernel/KernelKit/ZXD.h +++ b/dev/kernel/KernelKit/ZXD.h @@ -8,15 +8,16 @@ #include <NeKit/Defines.h> -namespace ZXD { -using namespace Kernel; +#define kZXDMagicNumber (0x2010AF) +#define kZXDVersion (0x0001) +namespace Kernel { struct ZXD_EXEC_HEADER; struct ZXD_STUB_HEADER; /// @brief ZXD executable header /// @details This header is used to identify ZXD executable files. -struct ZXD_EXEC_HEADER { +struct PACKED ZXD_EXEC_HEADER { UInt32 fMagic; UInt32 fVersion; UInt32 fFlags; @@ -35,9 +36,9 @@ struct ZXD_EXEC_HEADER { /// @brief ZXD stub header /// @details This header is used to identify ZXD stub files. It contains the size of the stub, the /// offset of the stub, and the CRC32 checksum of the stub. -struct ZXD_STUB_HEADER { +struct PACKED ZXD_STUB_HEADER { UInt32 fStubSize; UInt32 fStubOffset; UInt32 fStubCRC32; }; -} // namespace ZXD
\ No newline at end of file +} // namespace Kernel |
