mpfs_head.S: Change j/jal to tail call
In order to avoid linker truncation error (address unreachable), making it a tail call ensures this does not happen.
This commit is contained in:
parent
bf54a5ae50
commit
f404cb60b8
|
@ -166,7 +166,7 @@ __start:
|
|||
csrw mip, zero
|
||||
|
||||
/* Jump to application */
|
||||
j mpfs_jump_to_app
|
||||
tail mpfs_jump_to_app
|
||||
|
||||
.continue_boot:
|
||||
|
||||
|
@ -187,7 +187,7 @@ __start:
|
|||
|
||||
/* Jump to __mpfs_start with mhartid in a0 */
|
||||
|
||||
jal __mpfs_start
|
||||
tail __mpfs_start
|
||||
|
||||
/* We shouldn't return from __mpfs_start
|
||||
* in case of return, loop forever. nop's added so can be seen in debugger
|
||||
|
|
Loading…
Reference in New Issue