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:
parent
981e972839
commit
5ee9a45126
2 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ _irq_stack_loop:
|
|||
jal system_main /* Init clocks etc first */
|
||||
ssnop
|
||||
j main
|
||||
ssnop
|
||||
move ra, zero /* init backtrace root */
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue