diff --git a/sw/bootrom/main.c b/sw/bootrom/main.c index b989913..ca1da1f 100644 --- a/sw/bootrom/main.c +++ b/sw/bootrom/main.c @@ -49,8 +49,7 @@ __attribute__((noreturn, naked)) void main() { case 5: // Address ptr = (uint8_t*)sr; if (opcode == 3) { // Jump - //((void (*)()) ptr)(); - asm("jalr %0" : : "r"(ptr)); // Not sure why, but the jump above causes GCC to save variables to the stack at the beginning of this function + ((void (*)()) ptr)(); __builtin_unreachable(); } break;