Fix a minor bug that lead to a crash in release mode
This commit is contained in:
parent
040f5a53ae
commit
cf1d4faab4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue