mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
x86_64 syscalls: enable interrupts after loading sane state
This commit is contained in:
@@ -46,6 +46,8 @@ asm_syscall_entry:
|
||||
push qword [gs:0] ; save old stack
|
||||
mov [gs:0], rsp ; return back the kernel stack
|
||||
add qword [gs:0], 8 ; fix it
|
||||
|
||||
sti
|
||||
|
||||
push rcx ; old rip
|
||||
push r11 ; old rflags
|
||||
@@ -90,6 +92,8 @@ asm_syscall_entry:
|
||||
mov es,r11
|
||||
mov ds,r11
|
||||
|
||||
cli
|
||||
|
||||
pop r11
|
||||
pop rcx
|
||||
pop rsp
|
||||
|
||||
Reference in New Issue
Block a user