Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2010 19:03:27 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r352 - branches/experimental/devel/nspr/files
Message-ID:  <201007131903.o6DJ3Rp7089292@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: andreast
Date: Tue Jul 13 19:03:27 2010
New Revision: 352

Log:
Add support for powerpc64.

Modified:
   branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.cfg
   branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.h

Modified: branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.cfg
==============================================================================
--- branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.cfg	Tue Jul 13 10:55:57 2010	(r351)
+++ branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.cfg	Tue Jul 13 19:03:27 2010	(r352)
@@ -1,9 +1,55 @@
---- ../pr/include/md/_freebsd.cfg
-+++ ../pr/include/md/_freebsd.cfg
-@@ -283,6 +283,51 @@
+--- ../pr/include/md/_freebsd.cfg.orig	2007-11-26 19:17:17.000000000 +0100
++++ ../pr/include/md/_freebsd.cfg	2010-06-09 20:30:03.000000000 +0200
+@@ -283,6 +283,97 @@
  #define PR_ALIGN_OF_POINTER 8
  #define PR_ALIGN_OF_WORD    8
  
++#elif defined(__powerpc64__)
++
++#undef  IS_LITTLE_ENDIAN
++#define IS_BIG_ENDIAN    1
++#define IS_64
++
++#define PR_BYTES_PER_BYTE   1
++#define PR_BYTES_PER_SHORT  2
++#define PR_BYTES_PER_INT    4
++#define PR_BYTES_PER_INT64  8
++#define PR_BYTES_PER_LONG   8
++#define PR_BYTES_PER_FLOAT  4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD   8
++#define PR_BYTES_PER_DWORD  8
++
++#define PR_BITS_PER_BYTE    8
++#define PR_BITS_PER_SHORT   16
++#define PR_BITS_PER_INT     32
++#define PR_BITS_PER_INT64   64
++#define PR_BITS_PER_LONG    64
++#define PR_BITS_PER_FLOAT   32
++#define PR_BITS_PER_DOUBLE  64
++#define PR_BITS_PER_WORD    64
++
++#define PR_BITS_PER_BYTE_LOG2   3
++#define PR_BITS_PER_SHORT_LOG2  4
++#define PR_BITS_PER_INT_LOG2    5
++#define PR_BITS_PER_INT64_LOG2  6
++#define PR_BITS_PER_LONG_LOG2   6 
++#define PR_BITS_PER_FLOAT_LOG2  5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2   6
++
++#define PR_ALIGN_OF_SHORT   2
++#define PR_ALIGN_OF_INT     4
++#define PR_ALIGN_OF_LONG    8
++#define PR_ALIGN_OF_INT64   8
++#define PR_ALIGN_OF_FLOAT   4
++#define PR_ALIGN_OF_DOUBLE  8
++#define PR_ALIGN_OF_POINTER 8
++#define PR_ALIGN_OF_WORD    8
++
++#define PR_BYTES_PER_WORD_LOG2   3
++#define PR_BYTES_PER_DWORD_LOG2  3
++
 +#elif defined(__powerpc__)
 +
 +#undef  IS_LITTLE_ENDIAN

Modified: branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.h
==============================================================================
--- branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.h	Tue Jul 13 10:55:57 2010	(r351)
+++ branches/experimental/devel/nspr/files/patch-.._pr_include_md__freebsd.h	Tue Jul 13 19:03:27 2010	(r352)
@@ -1,15 +1,17 @@
---- ../pr/include/md/_freebsd.h
-+++ ../pr/include/md/_freebsd.h
-@@ -57,6 +57,8 @@
+--- ../pr/include/md/_freebsd.h.orig	2004-11-22 21:24:53.000000000 +0000
++++ ../pr/include/md/_freebsd.h	2010-06-07 20:53:33.000000000 +0000
+@@ -57,6 +57,10 @@
  #define _PR_SI_ARCHITECTURE "ia64"
  #elif defined(__amd64__)
  #define _PR_SI_ARCHITECTURE "amd64"
++#elif defined(__powerpc64__)
++#define _PR_SI_ARCHITECTURE "powerpc64"
 +#elif defined(__powerpc__)
 +#define _PR_SI_ARCHITECTURE "powerpc"
  #else
  #error "Unknown CPU architecture"
  #endif
-@@ -106,6 +108,16 @@
+@@ -106,6 +110,16 @@
  #define _PR_IPV6_V6ONLY_PROBE
  #endif
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007131903.o6DJ3Rp7089292>