Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBdPQ-00009d-SM for qemu-devel@nongnu.org; Fri, 20 Nov 2009 19:01:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBdPP-00008v-P5 for qemu-devel@nongnu.org; Fri, 20 Nov 2009 19:00:59 -0500 Received: from [199.232.76.173] (port=33130 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBdPP-00008V-EX for qemu-devel@nongnu.org; Fri, 20 Nov 2009 19:00:59 -0500 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:58284 helo=smtp.kn-bremen.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBdPO-0000Od-Or for qemu-devel@nongnu.org; Fri, 20 Nov 2009 19:00:58 -0500 Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id nAKMbvND016851 for ; Fri, 20 Nov 2009 23:37:57 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id nAKMbvYV016850 for qemu-devel@nongnu.org; Fri, 20 Nov 2009 23:37:57 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 20 Nov 2009 23:37:57 +0100 Message-ID: <20091120223757.GA16688@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Allow build of linuxboot.S with old assemblers List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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; \