Merge pull request #4019 from bj-wanghz/dev

fix long call linker error with 'jal', 'j' or conditional branch instruction in .S files for k210
This commit is contained in:
Bernard Xiong
2020-12-03 16:02:00 +08:00
committed by GitHub
3 changed files with 9 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ rt_hw_context_switch_to:
#ifdef RT_USING_SMP
mv a0, a1
jal rt_cpus_lock_status_restore
call rt_cpus_lock_status_restore
#endif
LOAD a0, 2 * REGBYTES(sp)
csrw mstatus, a0
@@ -161,7 +161,7 @@ save_mpie:
#ifdef RT_USING_SMP
mv a0, a2
jal rt_cpus_lock_status_restore
call rt_cpus_lock_status_restore
#endif /*RT_USING_SMP*/
j rt_hw_context_switch_exit