summaryrefslogtreecommitdiff
path: root/src/cpu/x86/entry32.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/entry32.S')
-rw-r--r--src/cpu/x86/entry32.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/x86/entry32.S b/src/cpu/x86/entry32.S
index ad4a7d032b..215d60182a 100644
--- a/src/cpu/x86/entry32.S
+++ b/src/cpu/x86/entry32.S
@@ -37,8 +37,9 @@ bootblock_protected_mode_entry:
movw %ax, %ds
movw %ax, %es
movw %ax, %ss
+ xor %ax, %ax /* zero out the gs and fs segment index */
movw %ax, %fs
- movw %ax, %gs
+ movw %ax, %gs /* Will be used for cpu_info */
/* Restore the BIST value to %eax */
movl %ebp, %eax