From: Juergen Lock Date: Fri, 20 Nov 2009 22:37:57 +0000 (+0100) Subject: Allow build of linuxboot.S with old assemblers X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~9687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd4239d6574ca41c94fc0d0f77ddc728510ffc57;p=sdk%2Femulator%2Fqemu.git Allow build of linuxboot.S with old assemblers 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 Signed-off-by: Blue Swirl --- diff --git a/pc-bios/optionrom/optionrom.h b/pc-bios/optionrom/optionrom.h index 34d69af..4dcb906 100644 --- 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; \