Move some variable name to task_cx to task_cx_ptr2

This commit is contained in:
Yifan Wu 2021-01-04 16:03:07 +08:00
parent 1ea79921bd
commit 923abbbc96
3 changed files with 14 additions and 8 deletions

View file

@ -8,7 +8,10 @@
.section .text
.globl __switch
__switch:
# __switch(current_task_cx: &*const TaskContext, next_task_cx: &*const TaskContext)
# __switch(
# current_task_cx_ptr2: &*const TaskContext,
# next_task_cx_ptr2: &*const TaskContext
# )
# push TaskContext to current sp and save its address to where a0 points to
addi sp, sp, -13*8
sd sp, 0(a0)