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:
Gunnar Beutner 2021-06-26 17:24:43 +02:00 committed by Andreas Kling
parent 9d9f20391d
commit 79ab9cce18
Notes: sideshowbarker 2024-07-18 11:27:19 +09:00

View file

@ -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