mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[bootloader] Added slot definition
This commit is contained in:
8
bootloader/slot.cpp
Normal file
8
bootloader/slot.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <bootloader/slot.h>
|
||||
|
||||
namespace Bootloader {
|
||||
|
||||
const struct Slot* s_slotA = reinterpret_cast<const struct Slot*>(0x90000000);
|
||||
const struct Slot* s_slotB = reinterpret_cast<const struct Slot*>(0x90400000);
|
||||
|
||||
}
|
||||
25
bootloader/slot.h
Normal file
25
bootloader/slot.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef BOOTLOADER_SLOT
|
||||
#define BOOTLOADER_SLOT
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Bootloader {
|
||||
|
||||
struct Slot {
|
||||
uint32_t unknown;
|
||||
uint32_t signature_offset;
|
||||
uint32_t magik_header;
|
||||
char version[8];
|
||||
char patch_level[8];
|
||||
uint32_t magik_footer;
|
||||
uint32_t* stack_pointer;
|
||||
void(*main_pointer)();
|
||||
};
|
||||
|
||||
extern const struct Slot* s_slotA;
|
||||
extern const struct Slot* s_slotB;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user