Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Tell it about riscv. Fix mips64 case so tha...
details: https://anonhg.NetBSD.org/src/rev/3dadddf24780
branches: trunk
changeset: 802547:3dadddf24780
user: matt <matt%NetBSD.org@localhost>
date: Fri Sep 19 17:42:19 2014 +0000
description:
Tell it about riscv. Fix mips64 case so that SIZEOF_PTR_2POW is 3.
diffstat:
lib/libc/stdlib/jemalloc.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r a5aa4c004020 -r 3dadddf24780 lib/libc/stdlib/jemalloc.c
--- a/lib/libc/stdlib/jemalloc.c Fri Sep 19 17:39:15 2014 +0000
+++ b/lib/libc/stdlib/jemalloc.c Fri Sep 19 17:42:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jemalloc.c,v 1.35 2014/09/03 19:29:40 matt Exp $ */
+/* $NetBSD: jemalloc.c,v 1.36 2014/09/19 17:42:19 matt Exp $ */
/*-
* Copyright (C) 2006,2007 Jason Evans <jasone%FreeBSD.org@localhost>.
@@ -118,7 +118,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.147 2007/06/15 22:00:16 jasone Exp $"); */
-__RCSID("$NetBSD: jemalloc.c,v 1.35 2014/09/03 19:29:40 matt Exp $");
+__RCSID("$NetBSD: jemalloc.c,v 1.36 2014/09/19 17:42:19 matt Exp $");
#ifdef __FreeBSD__
#include "libc_private.h"
@@ -295,10 +295,15 @@
# define SIZEOF_PTR_2POW 2
# define USE_BRK
#endif
-#ifdef __mips__
-# define QUANTUM_2POW_MIN 4
+#if defined(__mips__) || defined(__riscv__)
+# ifdef _LP64
+# define SIZEOF_PTR_2POW 3
+# define TINY_MIN_2POW 3
+# else
# define SIZEOF_PTR_2POW 2
-# define USE_BRK
+# endif
+# define QUANTUM_2POW_MIN 4
+# define USE_BRK
#endif
#ifdef __hppa__
# define QUANTUM_2POW_MIN 4
Home |
Main Index |
Thread Index |
Old Index