sw: bootrom: Remove jump workaround
With the naked attribute, this no longer causes gcc to push stuff onto the stack.
This commit is contained in:
parent
bd3eeb0ca2
commit
2b63e7d4ec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user