Replace function call to user code with jump
This commit is contained in:
1 parent
807b1f336f
commit
3afda0ebf9
1 file changed
+1
-3
+1
-3
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user