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:
Markus Koch 2025-01-30 20:16:23 +01:00
parent 916a3c1a4e
commit bd3eeb0ca2

View File

@ -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;