mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
x86_64 syscall: remove unescessary mov from entry
This commit is contained in:
@@ -208,8 +208,7 @@ arch_syscall_entry:
|
|||||||
; because it's still using the user stack
|
; because it's still using the user stack
|
||||||
mov cr2, rax
|
mov cr2, rax
|
||||||
; rax can be used just fine now
|
; rax can be used just fine now
|
||||||
mov rax, [gs:0x8] ; cpu pointer
|
mov rax, [gs:0] ; thread pointer
|
||||||
mov rax, [rax] ; thread pointer
|
|
||||||
mov rax, [rax] ; kernel stack top
|
mov rax, [rax] ; kernel stack top
|
||||||
xchg rsp, rax ; switch stack pointers
|
xchg rsp, rax ; switch stack pointers
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user