sw: bootrom: Prevent gcc from generating prologue
Specifically, we do not want it to push anything to the stack (such as the frame pointer), because it is not yet set up.
This commit is contained in:
parent
916a3c1a4e
commit
bd3eeb0ca2
@ -20,7 +20,7 @@ asm("_start:\
|
||||
#define main() _start()
|
||||
#endif /* ifdef ENABLE_STACK */
|
||||
|
||||
__attribute__((noreturn)) void main() {
|
||||
__attribute__((noreturn, naked)) void main() {
|
||||
uint8_t state = 0;
|
||||
uint8_t c;
|
||||
uint8_t opcode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user