summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/c_start.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S
index 9e718fcab0..c3fdfd9f17 100644
--- a/src/arch/x86/c_start.S
+++ b/src/arch/x86/c_start.S
@@ -90,7 +90,8 @@ _start:
*/
set_segment_descriptor_base $per_cpu_segment_descriptors, %esp
- mov per_cpu_segment_selector, %eax
+ mov $per_cpu_segment_selector, %eax
+ movl (%eax), %eax
mov %eax, %gs
#endif