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;
|
chipEraseFlag = ChipEraseState::NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void (*jump_fn)() __attribute__((naked, noreturn));
|
asm volatile("jmp 0x0000");
|
||||||
constexpr jump_fn boot = 0x0000;
|
|
||||||
boot();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user