Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E4Ry0-0005PB-Cx for mharc-grub-devel@gnu.org; Sun, 14 Aug 2005 19:32:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4Ru5-000440-4v for grub-devel@gnu.org; Sun, 14 Aug 2005 19:28:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4Rtw-0003ya-Tp for grub-devel@gnu.org; Sun, 14 Aug 2005 19:28:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4Rtv-0003k0-MR for grub-devel@gnu.org; Sun, 14 Aug 2005 19:28:23 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E4RmI-0002NW-Ca for grub-devel@gnu.org; Sun, 14 Aug 2005 19:20:30 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id D2079FF65C04 for ; Mon, 15 Aug 2005 01:04:51 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=ip6-localhost) by ASSP-nospam ; 14 Aug 05 23:04:51 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Mon, 15 Aug 2005 01:03:42 +0200 User-Agent: KMail/1.7.2 References: <20050814222711.23047.qmail@web35315.mail.mud.yahoo.com> In-Reply-To: <20050814222711.23047.qmail@web35315.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508150103.43027.okuji@enbug.org> Subject: Re: [PATCH] mmap support and x86_64 detection 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: Sun, 14 Aug 2005 23:32:35 -0000 On Monday 15 August 2005 00:27, Ruslan Nikolaev wrote: > Yesterday I sent patch for mmap support and x86_64 detection. What do you > think about? I need to known about it becuase I'll be busy this week... The detection code should not be a part of the kernel. You can do this only protected mode, right? I prefer implementing this with inline assembly. BTW, I think the current implementation of the multiboot loader is quite buggy. It loads an OS image only if it fits into between GRUB_OS_AREA_ADDR and GRUB_OS_AREA_ADDR + GRUB_OS_AREA_SIZE. Clearly, this is a bad assumption, since GRUB should not force its own internal structure. Instead, GRUB should always load an OS image onto the OS area, and relocates it before booting. Also, the command line buffer should not be in the heap, because this can be overridden when relocating an OS image. Instead, GRUB should move the Multiboot Information and related memory regions to somewhere safer (e.g. 0x2000-0x7000). Okuji