aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/elf.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-08-19 13:04:19 -0700
committerIngo Molnar <mingo@elte.hu>2008-08-20 12:33:03 +0200
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 7be4733c793..acbf3451b96 100644
--- a/include/asm-x86/elf.h
+++ b/include/asm-x86/elf.h
@@ -148,8 +148,9 @@ do { \
static inline void start_ia32_thread(struct pt_regs *regs, u32 ip, u32 sp)
{
- asm volatile("movl %0,%%fs" :: "r" (0));
- asm volatile("movl %0,%%es; movl %0,%%ds" : : "r" (__USER32_DS));
+ loadsegment(fs, 0);
+ loadsegment(ds, __USER32_DS);
+ loadsegment(es, __USER32_DS);
load_gs_index(0);
regs->ip = ip;
regs->sp = sp;