From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K4IGw-0005rn-Ri for mharc-grub-devel@gnu.org; Thu, 05 Jun 2008 12:25:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4IGu-0005qe-LO for grub-devel@gnu.org; Thu, 05 Jun 2008 12:25:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4IGt-0005pu-3V for grub-devel@gnu.org; Thu, 05 Jun 2008 12:25:04 -0400 Received: from [199.232.76.173] (port=35244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4IGs-0005pk-Tt for grub-devel@gnu.org; Thu, 05 Jun 2008 12:25:02 -0400 Received: from khepri.openbios.org ([80.190.231.112]:32928) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4HIx-0000QJ-KM for grub-devel@gnu.org; Thu, 05 Jun 2008 11:23:07 -0400 Received: from dslb-088-066-039-205.pools.arcor-ip.net ([88.66.39.205] helo=[192.168.0.27]) by khepri.openbios.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1K4HId-00073C-Tm for grub-devel@gnu.org; Thu, 05 Jun 2008 17:22:48 +0200 Message-ID: <484804D4.8020400@coresystems.de> Date: Thu, 05 Jun 2008 17:23:00 +0200 From: Stefan Reinauer Organization: coresystems GmbH User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: The development of GRUB 2 References: <1212598032.15804.9.camel@dv> <4848025A.9010302@gmx.de> In-Reply-To: <4848025A.9010302@gmx.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Floating point usage 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, 05 Jun 2008 16:25:05 -0000 Jan Kleinsorge wrote: > Pavel Roskin wrote: > >> Hello! >> >> I tried to compile the current grub on Fedora 9 for PowerPC, but it >> failed due to floating point usage in ls. Sorry, I don't have the exact >> message handy. >> >> Anyway, there are several references to "float" and "double" in the >> code, and I think it's wrong. GRUB should be able to work on systems >> with no floating point support and on systems where the floating point >> device needs to be activated. Even Linux kernel avoids using floating >> point. >> >> If everyone is fine, I'll try to remove all floating point stuff from >> the code. >> >> > Hi Pavel, > > there is no need for hard-float support on the target machine. The > libgcc provides all the software-emulation routines. Given that GRUB is > linked against it. Which is likely as it is a necessity when compiling > with gcc. Maybe your compilation is simply broken because of that one > missing. Could you please post the error message? Nonetheless, using Floating Point operations in bootloaders and firmware is highly discouraged. If Floating Point is required for a bootloader (except, maybe, possibly, at all, for encryption) the bootloader is definitely broken, either in implementation or in design. Also keep in mind, most operating systems expect the FPU to be in power on state. Stefan -- coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br. Tel.: +49 761 7668825 • Fax: +49 761 7664613 Email: info@coresystems.de • http://www.coresystems.de/ Registergericht: Amtsgericht Freiburg • HRB 7656 Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866