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

View File

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