mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Fix a minor bug that lead to a crash in release mode
This commit is contained in:
committed by
Tate, Hongliang Tian
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
|
||||
|
Reference in New Issue
Block a user