mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 13:18:22 +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
|
||||
mov cr2, rax
|
||||
; rax can be used just fine now
|
||||
mov rax, [gs:0x8] ; cpu pointer
|
||||
mov rax, [rax] ; thread pointer
|
||||
mov rax, [gs:0] ; thread pointer
|
||||
mov rax, [rax] ; kernel stack top
|
||||
xchg rsp, rax ; switch stack pointers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user