--- x86_64/boothdr.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/x86_64/boothdr.S b/x86_64/boothdr.S
index 30062b7b..45d59c06 100644
--- a/x86_64/boothdr.S
+++ b/x86_64/boothdr.S
@@ -169,7 +169,10 @@ switch64:
.code64
boot_entry64:
- movw $0,%ax
+ xorl %eax, %eax
+ movw %ax,%ds
+ movw %ax,%es
+ movw %ax,%ss
movw %ax,%fs
movw %ax,%gs
movw $BOOT_DS,%ax
--
2.51.0
