x86_64 syscall: remove unescessary mov from entry

This commit is contained in:
Matheus
2024-09-16 17:34:32 -03:00
parent 0a49ca75b5
commit 8a6b010a31
+1 -2
View File
@@ -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