Fix a minor bug that lead to a crash in release mode

This commit is contained in:
Chen Chengjun 2023-11-02 10:57:09 +08:00 committed by Tate, Hongliang Tian
parent 040f5a53ae
commit cf1d4faab4
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
.text
.global context_switch
.code64
context_switch: # (cur: *mut TaskContext, nxt: *TaskContext)
# Save cur's register
mov rax, [rsp] # return address