File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,8 @@ _vTRAP0_Handler:
209
209
; Context switch should be executed at the most outer of interrupt tree.
210
210
; In that case, set xPortScheduleStatus to flag context switch in interrupt handler.
211
211
jarl _xPortGET_CORE_ID , lp ; return value is contained in r10 (CCRH compiler)
212
+ shl 2 , r10
212
213
mov r10 , r11
213
- shl 2 , r11
214
214
mov #_uxInterruptNesting , r19
215
215
add r11 , r19
216
216
ld.w 0 [ r19 ], r18
@@ -309,6 +309,7 @@ _vIrq_Handler_SwitchContext:
309
309
; Get Core ID and pass to vTaskSwitchContext as parameter (CCRH compiler)
310
310
; The parameter is unused in single core, no problem with this redudant setting
311
311
jarl _xPortGET_CORE_ID , lp ; return value is contained in r10 (CCRH compiler)
312
+ shl 2 , r10 ; Multipy core ID by 4 (size of word) to get the correct offset
312
313
mov r10 , r6
313
314
314
315
; vPortYeild may be called to current core again at the end of vTaskSwitchContext.
You can’t perform that action at this time.
0 commit comments