Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GpCOq-0005bt-CE for mharc-grub-devel@gnu.org; Tue, 28 Nov 2006 18:30:04 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpCOo-0005ar-Br for grub-devel@gnu.org; Tue, 28 Nov 2006 18:30:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpCOn-0005a8-DP for grub-devel@gnu.org; Tue, 28 Nov 2006 18:30:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpCOn-0005a1-64 for grub-devel@gnu.org; Tue, 28 Nov 2006 18:30:01 -0500 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpCOk-0002pW-LI for grub-devel@gnu.org; Tue, 28 Nov 2006 18:30:00 -0500 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 02D613CCA01FA for ; Wed, 29 Nov 2006 03:21:07 +0100 (CET) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 8C9DF3CC0F2ED for ; Wed, 29 Nov 2006 03:21:06 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 29 Nov 2006 00:29:55 +0100 User-Agent: KMail/1.8.2 References: <200611281235.48809.okuji@enbug.org> <456C2F8C.1040709@intel.com> In-Reply-To: <456C2F8C.1040709@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611290029.55561.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.007544, version=0.17.2 Subject: Re: multiboot2: variable data size 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: Tue, 28 Nov 2006 23:30:03 -0000 On Tuesday 28 November 2006 13:46, bibo,mao wrote: > yes, x84_64EFI starts with 64-bit long mode and page enabled(virtual > address equals physical address) if it is x86_64 efi bios, it is defined in > section 2.3.4 of UEFI Specification Version 2.0. > > If kernel image is bzImage, x64 efi bootloader need switch to 32 bit > protect mode(or real mode) from 64 bit long mode, and if kernel image is > gzipped/plain format, efi bootloader can directly jump to 64-bit kernel > entry address without mode switch. Thanks for your detailed information. So does it mean that GRUB needs to provide a PE32+ application to EFI, if it is on x86_64? Or does it understand PE32? More information is welcome. BTW, in the current implementation, GRUB skips real mode setup code in Linux and directly jumps to a protected mode entry on EFI. Can we use the same trick with bzImage on x86_64? Mode switching is not difficult, but if we can omit it, that would be much easier to implement. Okuji