mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
x86_64: properly set kernel data segments on syscall/interrupt entry
This commit is contained in:
@@ -211,6 +211,10 @@ arch_syscall_entry:
|
||||
mov rbx, cr2
|
||||
push rbx
|
||||
|
||||
mov rbx, 0x10
|
||||
mov es, rbx
|
||||
mov ds, rbx
|
||||
|
||||
; prepare arguments for the functions
|
||||
push r9
|
||||
mov r9, r8
|
||||
|
||||
Reference in New Issue
Block a user