diff --git a/bootloader/slot.cpp b/bootloader/slot.cpp new file mode 100644 index 000000000..ff2020214 --- /dev/null +++ b/bootloader/slot.cpp @@ -0,0 +1,8 @@ +#include + +namespace Bootloader { + + const struct Slot* s_slotA = reinterpret_cast(0x90000000); + const struct Slot* s_slotB = reinterpret_cast(0x90400000); + +} diff --git a/bootloader/slot.h b/bootloader/slot.h new file mode 100644 index 000000000..6190fcf8d --- /dev/null +++ b/bootloader/slot.h @@ -0,0 +1,25 @@ +#ifndef BOOTLOADER_SLOT +#define BOOTLOADER_SLOT + +#include + +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 \ No newline at end of file