[bootloader] Added slot definition

This commit is contained in:
M4x1m3
2022-02-25 16:57:06 +01:00
parent 272797f31f
commit 4fe84a4959
2 changed files with 33 additions and 0 deletions

8
bootloader/slot.cpp Normal file
View 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
View 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