All of lore.kernel.org
 help / color / mirror / Atom feed
* [ppc patch] soft-float
@ 2004-10-03 23:46 Hollis Blanchard
  2004-10-04 11:24 ` Marco Gerards
  0 siblings, 1 reply; 8+ messages in thread
From: Hollis Blanchard @ 2004-10-03 23:46 UTC (permalink / raw)
  To: grub-devel

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	<hollis@penguinppc.org>

	* 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.
 




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-10-07 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 23:46 [ppc patch] soft-float Hollis Blanchard
2004-10-04 11:24 ` Marco Gerards
2004-10-06  7:10   ` Stefan Reinauer
2004-10-06  8:57     ` Yoshinori K. Okuji
2004-10-06  9:59       ` Marco Gerards
2004-10-06 10:18         ` Tomas Ebenlendr
2004-10-07  9:18           ` Yoshinori K. Okuji
2004-10-07 14:54             ` Stefan Reinauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.