diff options
author | br <br@FreeBSD.org> | 2016-01-22 16:37:26 +0000 |
---|---|---|
committer | br <br@FreeBSD.org> | 2016-01-22 16:37:26 +0000 |
commit | 87eab6d83d47fa66c163ec1f97b6929a7449af2d (patch) | |
tree | 9334e4c1e4703465f360dc4790dc231ec2baadfc /contrib/jemalloc | |
parent | 8bab59d4a5d707c4aab3ce2640da2f84cd78db0e (diff) | |
download | FreeBSD-src-87eab6d83d47fa66c163ec1f97b6929a7449af2d.zip FreeBSD-src-87eab6d83d47fa66c163ec1f97b6929a7449af2d.tar.gz |
Add configuration for RISC-V ISA.
Reviewed by: emaste
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Differential Revision: https://reviews.freebsd.org/D5020
Diffstat (limited to 'contrib/jemalloc')
-rw-r--r-- | contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h | 3 | ||||
-rw-r--r-- | contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h b/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h index fe0160a..c34c237 100644 --- a/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h +++ b/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h @@ -253,6 +253,9 @@ typedef unsigned szind_t; # ifdef __powerpc__ # define LG_QUANTUM 4 # endif +# ifdef __riscv__ +# define LG_QUANTUM 4 +# endif # ifdef __s390__ # define LG_QUANTUM 4 # endif diff --git a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h index 737542e..1ab2ce5 100644 --- a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h +++ b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h @@ -52,6 +52,9 @@ #elif defined(__powerpc__) # define LG_SIZEOF_PTR 2 #endif +#ifdef __riscv__ +# define LG_SIZEOF_PTR 3 +#endif #ifndef JEMALLOC_TLS_MODEL # define JEMALLOC_TLS_MODEL /* Default. */ |