]> err.no Git - linux-2.6/commitdiff
[PATCH] kdump: i386 save ss esp bug fix
authorakpm@osdl.org <akpm@osdl.org>
Tue, 10 Jan 2006 04:51:40 +0000 (20:51 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:26 +0000 (08:01 -0800)
\r)

From: Vivek Goyal <vgoyal@in.ibm.com>

This patch fixes a minor bug based on Andi Kleen's suggestion.  asm's can't be
broken in this particular case, hence merging them.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/crash.c

index 0248e084017ceddd74bcc7e92052cef801b897ff..10fe6569751e7761a226150fb920d8a3fdfa062e 100644 (file)
@@ -108,8 +108,10 @@ static void crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
 {
        memcpy(newregs, oldregs, sizeof(*newregs));
        newregs->esp = (unsigned long)&(oldregs->esp);
-       __asm__ __volatile__("xorl %eax, %eax;");
-       __asm__ __volatile__ ("movw %%ss, %%ax;" :"=a"(newregs->xss));
+       __asm__ __volatile__(
+                       "xorl %%eax, %%eax\n\t"
+                       "movw %%ss, %%ax\n\t"
+                       :"=a"(newregs->xss));
 }
 
 /* We may have saved_regs from where the error came from