mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[bootloader] Compatibility with Omega 2.0
This commit is contained in:
32
bootloader/kernel_header.h
Normal file
32
bootloader/kernel_header.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef BOOTLOADER_KERNEL_HEADER_H
|
||||
#define BOOTLOADER_KERNEL_HEADER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Bootloader {
|
||||
|
||||
class KernelHeader {
|
||||
public:
|
||||
const char * version() const;
|
||||
const char * patchLevel() const;
|
||||
const bool isValid() const;
|
||||
|
||||
const uint32_t* stackPointer() const;
|
||||
const void(*startPointer() const)();
|
||||
|
||||
private:
|
||||
KernelHeader();
|
||||
constexpr static uint32_t Magic = 0xDEC00DF0;
|
||||
const uint32_t m_unknown;
|
||||
const uint32_t m_signature;
|
||||
const uint32_t m_header;
|
||||
const char m_version[8];
|
||||
const char m_patchLevel[8];
|
||||
const uint32_t m_footer;
|
||||
const uint32_t* m_stackPointer;
|
||||
const void(*m_startPointer)();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user