mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
Kernel: Clear segment registers on x86_64
They're supposedly unused but iretq doesn't like ss being non-zero.
This commit is contained in:
parent
9d9f20391d
commit
79ab9cce18
1 changed files with 7 additions and 0 deletions
|
@ -265,6 +265,13 @@ start:
|
|||
|
||||
.code64
|
||||
1:
|
||||
mov $0, %ax
|
||||
mov %ax, %ss
|
||||
mov %ax, %ds
|
||||
mov %ax, %es
|
||||
mov %ax, %fs
|
||||
mov %ax, %gs
|
||||
|
||||
call init
|
||||
add $4, %rsp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue