Replace function call to user code with jump
This commit is contained in:
parent
807b1f336f
commit
3afda0ebf9
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user