mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[external] Updated for compatibility with KhiCAS
This commit is contained in:
@@ -41,6 +41,7 @@ const char * patchLevel();
|
||||
const char * fccId();
|
||||
const char * pcbVersion();
|
||||
void updateSlotInfo();
|
||||
const void * storageAddress();
|
||||
|
||||
// CRC32 : non xor-ed, non reversed, direct, polynomial 4C11DB7
|
||||
uint32_t crc32Word(const uint32_t * data, size_t length); // Only accepts whole 32bit values
|
||||
|
||||
@@ -101,7 +101,9 @@ public:
|
||||
assert(m_omegaMagicFooter == OmegaMagic);
|
||||
return m_username;
|
||||
}
|
||||
|
||||
const void * storage_address() const {
|
||||
return storageAddress;
|
||||
}
|
||||
private:
|
||||
constexpr static uint32_t Magic = 0xDEC0EDFE;
|
||||
constexpr static uint32_t OmegaMagic = 0xEFBEADDE;
|
||||
@@ -172,6 +174,10 @@ const char * Ion::patchLevel() {
|
||||
return k_kernelHeader.patchLevel();
|
||||
}
|
||||
|
||||
const void * Ion::storageAddress() {
|
||||
return k_userlandHeader.storage_address();
|
||||
}
|
||||
|
||||
SlotInfo * slotInfo() {
|
||||
static SlotInfo __attribute__((used)) __attribute__((section(".slot_info"))) slotInformation;
|
||||
return &slotInformation;
|
||||
|
||||
@@ -94,6 +94,9 @@ public:
|
||||
assert(m_omegaMagicFooter == OmegaMagic);
|
||||
return m_patchLevel;
|
||||
}
|
||||
const void * storage_address() const {
|
||||
return storageAddress;
|
||||
}
|
||||
private:
|
||||
constexpr static uint32_t Magic = 0xDEC00DF0;
|
||||
constexpr static uint32_t OmegaMagic = 0xEFBEADDE;
|
||||
@@ -138,6 +141,10 @@ const char * Ion::patchLevel() {
|
||||
return platform_infos.patchLevel();
|
||||
}
|
||||
|
||||
const void * Ion::storageAddress() {
|
||||
return platform_infos.storage_address();
|
||||
}
|
||||
|
||||
void Ion::updateSlotInfo() {
|
||||
|
||||
}
|
||||
|
||||
@@ -92,6 +92,9 @@ public:
|
||||
assert(m_omegaMagicFooter == OmegaMagic);
|
||||
return m_patchLevel;
|
||||
}
|
||||
const void * storage_address() const {
|
||||
return storageAddress;
|
||||
}
|
||||
private:
|
||||
constexpr static uint32_t Magic = 0xDEC00DF0;
|
||||
constexpr static uint32_t OmegaMagic = 0xEFBEADDE;
|
||||
@@ -136,6 +139,10 @@ const char * Ion::patchLevel() {
|
||||
return platform_infos.patchLevel();
|
||||
}
|
||||
|
||||
const void * Ion::storageAddress() {
|
||||
return platform_infos.storage_address();
|
||||
}
|
||||
|
||||
void Ion::updateSlotInfo() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,9 @@ public:
|
||||
assert(m_omegaMagicFooter == OmegaMagic);
|
||||
return m_patchLevel;
|
||||
}
|
||||
const void * storage_address() const {
|
||||
return storageAddress;
|
||||
}
|
||||
private:
|
||||
constexpr static uint32_t Magic = 0xDEC00DF0;
|
||||
constexpr static uint32_t OmegaMagic = 0xEFBEADDE;
|
||||
@@ -137,3 +140,11 @@ const volatile char * Ion::username() {
|
||||
const char * Ion::patchLevel() {
|
||||
return platform_infos.patchLevel();
|
||||
}
|
||||
|
||||
void * storage_address(){
|
||||
return storageAddress;
|
||||
}
|
||||
|
||||
const void * Ion::storageAddress() {
|
||||
return platform_infos.storage_address();
|
||||
}
|
||||
Reference in New Issue
Block a user