X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-x86%2Felf.h;h=acbf3451b96439fd4f20754d5936998457e7ac66;hb=b6edbb1e045a7116d5571544dae25c6c37c94a48;hp=8f232dc5b5fe09dc81274a5eb830ee352c052169;hpb=62429f434091586d54b37b8dd46076e7c08b27b9;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-x86/elf.h b/include/asm-x86/elf.h index 8f232dc5b5f..acbf3451b96 100644 --- a/include/asm-x86/elf.h +++ b/include/asm-x86/elf.h @@ -83,9 +83,9 @@ extern unsigned int vdso_enabled; (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486)) #include +#include #ifdef CONFIG_X86_32 -#include /* for savesegment */ #include #define elf_check_arch(x) elf_check_arch_ia32(x) @@ -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;