Magical Backup

This commit is contained in:
devdl11
2022-05-19 19:50:27 +02:00
parent 833bc4a120
commit 8e543f30c9
22 changed files with 265 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ bool Boot::isKernelPatched(const Slot & s) {
return *(uint32_t *)(origin_isr + sizeof(uint32_t) * 7) == ((uint32_t)&_fake_isr_function_start) + 1;
}
__attribute((section(".fake_isr_function"))) __attribute__((used)) void Boot::flash_interrupt() {
__attribute__((section(".fake_isr_function"))) __attribute__((used)) void Boot::flash_interrupt() {
// a simple function
Ion::Device::Flash::ClearInternalFlashErrors();
asm("bx lr");