diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-29 17:12:41 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-29 17:12:41 +0100 |
| commit | f03986937db0b927da4b10554801e18e4dc7c43f (patch) | |
| tree | 408c75b5af373b0a9a42a4b858ce5396af75703a /Private/NewBoot/BootKit | |
| parent | 4b7cd3b0536f44a3c95e71550a77df08d9a4c088 (diff) | |
Kernel: Fix and unified NewBoot handover protocol.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit')
| -rw-r--r-- | Private/NewBoot/BootKit/Protocol.hxx | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Private/NewBoot/BootKit/Protocol.hxx b/Private/NewBoot/BootKit/Protocol.hxx index b33ab32e..c2dc1a9d 100644 --- a/Private/NewBoot/BootKit/Protocol.hxx +++ b/Private/NewBoot/BootKit/Protocol.hxx @@ -15,7 +15,28 @@ namespace HEL { using namespace hCore; -struct HandoverHeader final +/** + @brief the kind of executable we're loading. +*/ +enum +{ + kTypeKernel = 100, + kTypeKernelDriver = 101, + kTypeRsrc = 102, + kTypeCount = 3, +}; + +/** + @brief The executable architecture. +*/ + +enum +{ + kArchAmd64 = 122, + kArchCount = 2, +}; + +struct __attribute__((packed)) HandoverHeader final { Int32 targetMagic; Int32 targetType; |
