Replace function call to user code with jump

This commit is contained in:
BlackMark committed 2020-04-12 16:05:16 +02:00
1 parent 807b1f336f
commit 3afda0ebf9
1 file changed
+1 -3
+1 -3
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");
}
}