mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Update the NIOSII port to enable longer jumps (#578)
Update the NIOSII port so it works on systems with more RAM as per https://forums.freertos.org/t/nios-ii-r-nios2-call26-noat-linker-error/16028
This commit is contained in:
parent
4e2bf2c639
commit
d7b712668d
|
@ -131,7 +131,8 @@ soft_exceptions:
|
||||||
|
|
||||||
call_scheduler:
|
call_scheduler:
|
||||||
stw ea, 72(sp) # EA is PC+4 so will skip over instruction causing exception
|
stw ea, 72(sp) # EA is PC+4 so will skip over instruction causing exception
|
||||||
call vTaskSwitchContext # Pick the next context.
|
movia r15, vTaskSwitchContext # Pick the next context - use long call version in place of "call"
|
||||||
|
callr r15
|
||||||
br restore_sp_from_pxCurrentTCB # Switch in the task context and restore.
|
br restore_sp_from_pxCurrentTCB # Switch in the task context and restore.
|
||||||
|
|
||||||
.section .exceptions.unknown.user
|
.section .exceptions.unknown.user
|
||||||
|
|
Loading…
Reference in a new issue