[bootloader] Fix booting on newer toolchain versions

This commit is contained in:
Yaya-Cout
2024-04-04 19:22:56 +02:00
parent 510143678f
commit 5e83c03f8d

View File

@@ -38,10 +38,8 @@ void Boot::setMode(BootMode mode) {
void Boot::busError() {
Ion::Device::Flash::ClearInternalFlashErrors();
asm("mov r12, lr");
if (config()->isBooting()) { // Bus error is normal if we are booting, it's triggered when we lock OPTCR
asm("mov lr, r12");
asm("bx lr");
return;
}
Bootloader::Recovery::crash_handler("BusFault");
}