mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 11:27:19 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/79ab9cce18d Pull-request: https://github.com/SerenityOS/serenity/pull/8269 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/IdanHo
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…
Reference in a new issue