From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J7qD2-0007j9-IF for mharc-grub-devel@gnu.org; Thu, 27 Dec 2007 05:43:28 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7qCz-0007h8-H8 for grub-devel@gnu.org; Thu, 27 Dec 2007 05:43:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7qCx-0007fZ-JL for grub-devel@gnu.org; Thu, 27 Dec 2007 05:43:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7qCx-0007fL-BB for grub-devel@gnu.org; Thu, 27 Dec 2007 05:43:23 -0500 Received: from py-out-1112.google.com ([64.233.166.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J7qCx-0005MQ-5k for grub-devel@gnu.org; Thu, 27 Dec 2007 05:43:23 -0500 Received: by py-out-1112.google.com with SMTP id a73so6052836pye.14 for ; Thu, 27 Dec 2007 02:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4rpUl692UQpr1VkzfN/5MjEqD1CzPwpD24mR4H5XCOk=; b=tseHeooBvbTNXoMW0+aDknad/KvEAw1JkLhEfhqs1pYFUJATGs1a7WXH0XW6Yl29Hinwbai1Oa9UNzx7J9TmLJi19Y1E+A+2N/65H0Vg8CVAwLX/1Er4A1NccaB/wKePwWbAU0uvjcqRYUXOzO0NT43D8aKq7hovtYz+oV6UF3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sLgz5rssUVA0zt/M9QKpi40AiGpEnfbJpsMSc94YtKBAkJ2haA2pu7YThvs/ApXsjfPYx40pBFwz4E5biQznQnhIZ5+YnT0+MhP2dXEtzcaVYl5q61EdTj7A8KJMWbuWDabMFyKXhAYWy/c7ddqmi/DRMGQBzTFbVG/Bwyxn2DM= Received: by 10.35.87.10 with SMTP id p10mr9439639pyl.34.1198752202103; Thu, 27 Dec 2007 02:43:22 -0800 (PST) Received: by 10.35.76.20 with HTTP; Thu, 27 Dec 2007 02:43:22 -0800 (PST) Message-ID: Date: Thu, 27 Dec 2007 18:43:22 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20071227095705.GA30225@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1198575687.6484.25.camel@latsun.main.fg> <20071225110756.GA22389@thorin> <1198581793.6484.30.camel@latsun.main.fg> <20071226071732.GB8632@thorin> <20071227095705.GA30225@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Failed to build grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 10:43:26 -0000 On Dec 27, 2007 5:57 PM, Robert Millan wrote: > Why not force it with .code32 / .code16 ? No, you can't use .code32/.code16, it will not cause compile error, but the machine code is wrong. However, you can write it like this: .byte 0x66, 0x67 .code32 leal 0x200 + data_start - data_next(%ebx,%eax), %eax .code16 0x66 and 0x67 is the DATA32 and ADDR32 prefix, it tell the cpu that the next instruction use different registry and address mode. (16-bit %ax -> 32-bit %eax, 16-bit address mode to 32-bit address mode). -- Bean