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:
Ville Juven 2023-12-08 12:28:39 +02:00 committed by Petro Karashchenko
parent bf54a5ae50
commit f404cb60b8
1 changed files with 2 additions and 2 deletions

View File

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