mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +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
|
.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
|
||||||
|
Reference in New Issue
Block a user