aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/kernel/crash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/kernel/crash.c b/arch/i386/kernel/crash.c
index 0248e084017c..10fe6569751e 100644
--- a/arch/i386/kernel/crash.c
+++ b/arch/i386/kernel/crash.c
@@ -108,8 +108,10 @@ static void crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
108{ 108{
109 memcpy(newregs, oldregs, sizeof(*newregs)); 109 memcpy(newregs, oldregs, sizeof(*newregs));
110 newregs->esp = (unsigned long)&(oldregs->esp); 110 newregs->esp = (unsigned long)&(oldregs->esp);
111 __asm__ __volatile__("xorl %eax, %eax;"); 111 __asm__ __volatile__(
112 __asm__ __volatile__ ("movw %%ss, %%ax;" :"=a"(newregs->xss)); 112 "xorl %%eax, %%eax\n\t"
113 "movw %%ss, %%ax\n\t"
114 :"=a"(newregs->xss));
113} 115}
114 116
115/* We may have saved_regs from where the error came from 117/* We may have saved_regs from where the error came from