aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/elf.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-08-19 16:04:19 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-20 06:33:03 -0400
commitb6edbb1e045a7116d5571544dae25c6c37c94a48 (patch)
treebf4db26545f553880f72cacfe6545c5324841f85 /include/asm-x86/elf.h
parentc171f465b7281f2d3b03e9145ec763d6a8bab176 (diff)
x86_64: use save/loadsegment in ia32 compat
Use savesegment and loadsegment consistently in ia32 compat code. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/elf.h')
-rw-r--r--include/asm-x86/elf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/elf.h b/include/asm-x86/elf.h
index 7be4733c793e..acbf3451b964 100644
--- a/include/asm-x86/elf.h
+++ b/include/asm-x86/elf.h
@@ -148,8 +148,9 @@ do { \
148 148
149static inline void start_ia32_thread(struct pt_regs *regs, u32 ip, u32 sp) 149static inline void start_ia32_thread(struct pt_regs *regs, u32 ip, u32 sp)
150{ 150{
151 asm volatile("movl %0,%%fs" :: "r" (0)); 151 loadsegment(fs, 0);
152 asm volatile("movl %0,%%es; movl %0,%%ds" : : "r" (__USER32_DS)); 152 loadsegment(ds, __USER32_DS);
153 loadsegment(es, __USER32_DS);
153 load_gs_index(0); 154 load_gs_index(0);
154 regs->ip = ip; 155 regs->ip = ip;
155 regs->sp = sp; 156 regs->sp = sp;