grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ppc patch] soft-float


From: Hollis Blanchard
Subject: [ppc patch] soft-float
Date: Sun, 3 Oct 2004 18:46:33 -0500 (CDT)

This patch allows the Total Impact briQ
(http://www.totalimpact.com/products/the_briq/the_briq.html) to boot GRUB.  
The briQ's firmware does not set MSR:FP; however, floating point registers
are used as per the PPC SVR4 ABI to pass variable argument lists. This
results in a fatal exception.

Our options are either to enable MSR:FP ourselves or to disable this 
behavior. Either is easy enough, but since there is no real reason to use 
FP in GRUB I chose to disable it.

I also noticed that __ASSEMBLY__ was being defined in CFLAGS, which is 
incorrect.

2004-10-03      Hollis Blanchard        <address@hidden>

        * conf/powerpc-ieee1275.mk (COMMON_CFLAGS): remove -D__ASSEMBLY__.
        Add -msoft-float.
        * conf/powerpc-ieee1275.rmk (COMMON_CFLAGS): remove
        -D__ASSEMBLY__.
        Add -msoft-float.

Index: conf/powerpc-ieee1275.mk
===================================================================
RCS file: /cvsroot/grub/grub2/conf/powerpc-ieee1275.mk,v
retrieving revision 1.9
diff -u -r1.9 powerpc-ieee1275.mk
--- conf/powerpc-ieee1275.mk    14 Sep 2004 21:21:12 -0000      1.9
+++ conf/powerpc-ieee1275.mk    3 Oct 2004 23:31:01 -0000
@@ -2,7 +2,7 @@
 # -*- makefile -*-
 
 COMMON_ASFLAGS = -nostdinc -fno-builtin -D__ASSEMBLY__
-COMMON_CFLAGS = -fno-builtin -D__ASSEMBLY__
+COMMON_CFLAGS = -fno-builtin -msoft-float
 
 # Images.
 
Index: conf/powerpc-ieee1275.rmk
===================================================================
RCS file: /cvsroot/grub/grub2/conf/powerpc-ieee1275.rmk,v
retrieving revision 1.10
diff -u -r1.10 powerpc-ieee1275.rmk
--- conf/powerpc-ieee1275.rmk   22 Sep 2004 18:26:16 -0000      1.10
+++ conf/powerpc-ieee1275.rmk   3 Oct 2004 23:31:01 -0000
@@ -2,7 +2,7 @@
 # -*- makefile -*-
 
 COMMON_ASFLAGS = -nostdinc -fno-builtin -D__ASSEMBLY__
-COMMON_CFLAGS = -fno-builtin -D__ASSEMBLY__
+COMMON_CFLAGS = -fno-builtin -msoft-float
 
 # Images.
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]