mips: stop backtraces at main()

Initialize ra=0 before calling main so backtraces don't walk
through the startup code.

Change-Id: Ia8796ce38b32d14025b47b3e00061267ee25cbaf
This commit is contained in:
Aidan MacDonald 2022-05-17 16:29:18 +01:00
parent 981e972839
commit 5ee9a45126
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ _irq_stack_loop:
jal system_main /* Init clocks etc first */
ssnop
j main
ssnop
move ra, zero /* init backtrace root */
/*

View file

@ -110,7 +110,7 @@ _realstart:
jal system_early_init
nop
j main
nop
move ra, zero /* init backtrace root */
/* copy(void* src, void* dst, void* dst_end) */
_copy: