mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
26 lines
650 B
C++
26 lines
650 B
C++
#include <bootloader/userland_header.h>
|
|
|
|
namespace Bootloader {
|
|
|
|
const UserlandHeader* s_UserlandHeaderA = reinterpret_cast<const struct UserlandHeader*>(0x90010000);
|
|
const UserlandHeader* s_UserlandHeaderB = reinterpret_cast<const struct UserlandHeader*>(0x90410000);
|
|
|
|
const char * UserlandHeader::version() const {
|
|
return m_expectedEpsilonVersion;
|
|
}
|
|
|
|
const bool UserlandHeader::isValid() const {
|
|
return m_header == Magic && m_footer == Magic;
|
|
}
|
|
|
|
const bool UserlandHeader::isOmega() const {
|
|
return m_ohm_header == OmegaMagic && m_ohm_footer == OmegaMagic;
|
|
}
|
|
|
|
|
|
const char * UserlandHeader::omegaVersion() const {
|
|
return m_omegaVersion;
|
|
}
|
|
|
|
}
|