Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Dsz6o-0003ol-QO for mharc-grub-devel@gnu.org; Thu, 14 Jul 2005 04:30:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dsz0p-0002DF-4H for grub-devel@gnu.org; Thu, 14 Jul 2005 04:24:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dsz0d-0002Am-DO for grub-devel@gnu.org; Thu, 14 Jul 2005 04:23:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dsz0b-00028z-VP for grub-devel@gnu.org; Thu, 14 Jul 2005 04:23:54 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dsz5I-0006CK-9u for grub-devel@gnu.org; Thu, 14 Jul 2005 04:28:44 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id F1207FEFF2FA for ; Thu, 14 Jul 2005 10:20:25 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=[::1]) by ASSP-nospam ; 14 Jul 05 08:20:23 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 14 Jul 2005 10:20:05 +0200 User-Agent: KMail/1.7.2 References: <42D41B87.1020107@yahoo.fr> <874qayacw6.fsf@student.han.nl> <42D582BE.1060609@yahoo.fr> In-Reply-To: <42D582BE.1060609@yahoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507141020.05921.okuji@enbug.org> Subject: Re: [FILE] Play command 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, 14 Jul 2005 08:30:12 -0000 On Wednesday 13 July 2005 23:08, Vincent Pelletier wrote: > It might require some [f|s]scanf function, and I don't think it is > welcome in the core just because it is used in such peripheral function. > I thought first about using such format, because it's way easier to > edit... But I finally resigned. Maybe a fscanf function could be added > in this module, then moved in the core if it turns out to be useful. There is no rule that you must add POSIX-like functions into the kernel. It is also fine to have libc.mod, if necessary. > > Is it possible to share this code? We need it for VGA and now for > > play, we will need it more often for other code which we will write in > > the future. > > Maybe could they be added to kern/i386/pc/startup.S . No. startup.S should be used only if you must use real mode. In this case, we use protected mode, so you should add these functions into a C file or a header. Defining them in a header makes sense, because they are inline functions. Okuji