mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[bootloader] Fix booting on newer toolchain versions
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user