[OpenBIOS] [PATCH] Darwin/ppc host needs fake int128_t for sparc64

Andreas Färber andreas.faerber at web.de
Sun Sep 19 11:39:04 CEST 2010


Otherwise it chokes on ducell in include/kernel/stack.h.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
 It seems I only mentioned this on the list but never sent a proper patch.
 http://www.openfirmware.info/pipermail/openbios/2009-November/004192.html
 
 Not sure about Linux/ppc or Darwin/x86, so I've limited it to Darwin/ppc for now.
 
 Regards,
 Andreas
 
 config/scripts/switch-arch |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch
index c1158fa..8b6563d 100755
--- a/config/scripts/switch-arch
+++ b/config/scripts/switch-arch
@@ -71,6 +71,8 @@ crosscflags()
 
     if test "$host" = "x86" -a "$targetlongbits" = "64"; then
         cflags="$cflags -DNEED_FAKE_INT128_T"
+    elif test "$host" = "ppc" -a "$targetlongbits" = "64" -a `uname -s` = "Darwin"; then
+        cflags="$cflags -DNEED_FAKE_INT128_T"
     fi
 
     CROSSCFLAGS=$cflags
-- 
1.7.0.4




More information about the OpenBIOS mailing list