mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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
|
.code64
|
||||||
1:
|
1:
|
||||||
|
mov $0, %ax
|
||||||
|
mov %ax, %ss
|
||||||
|
mov %ax, %ds
|
||||||
|
mov %ax, %es
|
||||||
|
mov %ax, %fs
|
||||||
|
mov %ax, %gs
|
||||||
|
|
||||||
call init
|
call init
|
||||||
add $4, %rsp
|
add $4, %rsp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue