All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Allow build of linuxboot.S with old assemblers
@ 2009-11-20 22:37 Juergen Lock
  0 siblings, 0 replies; only message in thread
From: Juergen Lock @ 2009-11-20 22:37 UTC (permalink / raw)
  To: qemu-devel

In the spirit of ff56954baf9cfab5cbbe18d10b4a09e4a17f39a8, fix the
build of linuxboot.S with old as(1) (as found in some BSD base systems)
by emitting the bytes of the insn it doesn't like instead.

Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>

--- a/pc-bios/optionrom/optionrom.h
+++ b/pc-bios/optionrom/optionrom.h
@@ -66,7 +66,10 @@
 	outw		%ax, (%dx);			\
 	mov		$BIOS_CFG_IOPORT_DATA, %dx;	\
 	cld;						\
-	rep insb	(%dx), %es:(%edi);
+	/* old as(1) doesn't like this insn so emit the bytes instead: \
+	rep insb	(%dx), %es:(%edi);		\
+	*/						\
+	.dc.b		0x67,0xf3,0x6c
 
 #define OPTION_ROM_START					\
     .code16;						\

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

only message in thread, other threads:[~2009-11-21  0:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-20 22:37 [Qemu-devel] [PATCH] Allow build of linuxboot.S with old assemblers Juergen Lock

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.