Author: jchandra
Date: Tue Apr 24 11:42:48 2012
New Revision: 234646
URL: http://svn.freebsd.org/changeset/base/234646

Log:
  jemalloc: pointer size definition for 64-bit mips platforms
  
  LG_SIZEOF_PTR has to be defined as 3 when jemalloc is compiled for
  64 bit platforms.
  
  Reviewed by:  juli
  Approved by:  jasone

Modified:
  head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h

Modified: head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
==============================================================================
--- head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h   Tue Apr 24 
10:20:24 2012        (r234645)
+++ head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h   Tue Apr 24 
11:42:48 2012        (r234646)
@@ -41,8 +41,12 @@
 #  define LG_SIZEOF_PTR                2
 #endif
 #ifdef __mips__
+#ifdef __mips_n64
+#  define LG_SIZEOF_PTR                3
+#else
 #  define LG_SIZEOF_PTR                2
 #endif
+#endif
 #ifdef __powerpc64__
 #  define LG_SIZEOF_PTR                3
 #elif defined(__powerpc__)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to