; Functions used by scheduler\r
;------------------------------------------------------------------------------\r
EXTERN vTaskSwitchContext\r
; Functions used by scheduler\r
;------------------------------------------------------------------------------\r
EXTERN vTaskSwitchContext\r
\r
; Variables used by scheduler\r
;------------------------------------------------------------------------------\r
\r
; Variables used by scheduler\r
;------------------------------------------------------------------------------\r
stsr 1,lp\r
st.w lp,0[sp] ; store EIPSW to stack\r
portSAVE_CONTEXT ; Save the context of the current task.\r
stsr 1,lp\r
st.w lp,0[sp] ; store EIPSW to stack\r
portSAVE_CONTEXT ; Save the context of the current task.\r
jarl vTaskSwitchContext,lp ; Call the scheduler.\r
portRESTORE_CONTEXT ; Restore the context of whichever task the ...\r
; ... scheduler decided should run.\r
jarl vTaskSwitchContext,lp ; Call the scheduler.\r
portRESTORE_CONTEXT ; Restore the context of whichever task the ...\r
; ... scheduler decided should run.\r