Replace function call to user code with jump

This commit is contained in:
BlackMark 2020-04-12 16:05:16 +02:00
parent 807b1f336f
commit 3afda0ebf9

View File

@ -594,9 +594,7 @@ int main()
chipEraseFlag = ChipEraseState::NONE;
}
typedef void (*jump_fn)() __attribute__((naked, noreturn));
constexpr jump_fn boot = 0x0000;
boot();
asm volatile("jmp 0x0000");
}
}