All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix x86_64 boot/memory.c compilation (a misprint)
@ 2007-05-21  9:26 Pavel Emelianov
  0 siblings, 0 replies; only message in thread
From: Pavel Emelianov @ 2007-05-21  9:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andi Kleen, Linux Kernel Mailing List

There is a misprint in arch/i386/boot/memory.c file that leads
to error in x86_64 compilation:

...
  CC      arch/x86_64/boot/memory.o
arch/i386/boot/memory.c: In function `detect_memory':
arch/i386/boot/memory.c:32: error: can't find a register in class `DREG' while reloading `asm'

The err variable is specified in asm output list like "=dm", not "=m".

This is for 2.6.22-rc1-mm1 tree. Maybe this exists in i386 as well 
and the patch is sent, but...

Signed-off-by: Pavel Emelianov <xemul@openvz.org>

---

diff --git a/arch/i386/boot/memory.c b/arch/i386/boot/memory.c
index 8a82aa9..7ae2d23 100644
--- a/arch/i386/boot/memory.c
+++ b/arch/i386/boot/memory.c
@@ -30,7 +30,7 @@ static int detect_memory_e820(void)
 		size = sizeof(struct e820entry);
 		id = SMAP;
 		asm("int $0x15; setc %0"
-		    : "=dm" (err), "+b" (next), "+d" (id), "+c" (size),
+		    : "=m" (err), "+b" (next), "+d" (id), "+c" (size),
 		      "=m" (*desc)
 		    : "D" (desc), "a" (0xe820));
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-21  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21  9:26 [PATCH] Fix x86_64 boot/memory.c compilation (a misprint) Pavel Emelianov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.