summaryrefslogtreecommitdiff
path: root/src/mips/ffitarget.h
diff options
context:
space:
mode:
authorNiclas Zeising <zeising+github@daemonic.se>2020-08-07 21:05:23 +0200
committerGitHub <noreply@github.com>2020-08-07 15:05:23 -0400
commit8276f812a99b10d1f2c387dbd6ef2ca4f597c733 (patch)
tree9a70f46d8bbbe39e6a32d80542b4fe9c2f28f68f /src/mips/ffitarget.h
parent392afbaf60663e530bd740da0b5a39ee9f4ba052 (diff)
downloadlibffi-8276f812a99b10d1f2c387dbd6ef2ca4f597c733.tar.gz
Upstream local FreeBSD patches (#567)
* Add support for FreeBSD mips Add support for FreeBSD mips, this has been a local patch in the FreeBSD ports tree for quite some time. Originally submitted by sson, and committed by sbruno AT FreeBSD DOT org See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191909 for background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Add support for FreeBSD powerpcspe Add support for powerpcspe on FreeBSD This has been in the FreeBSD ports tree for some time. Originally submitted by jhibbits AT FreeBSD DOT org. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Fix abort() on FreeBSD arm related to __clear_cache() This patch has been in the FreeBSD ports tree for a number of years. Original commit by koobs AT FreeBSD DOT org Original commit message: > devel/libffi: Fix abort() on ARM related to __clear_cache() > > The current FreeBSD/ARM __clear_cache() implementation does nothing #if > __i386__ || __x86_64__ #else abort(); > > cognet@ advises this is an issue for anything !Apple that is using the > libcompiler_rt provided by Clang on ARM, and requires upstreaming. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=149167 for some background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Diffstat (limited to 'src/mips/ffitarget.h')
-rw-r--r--src/mips/ffitarget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h
index fffdb97..fdd5ca9 100644
--- a/src/mips/ffitarget.h
+++ b/src/mips/ffitarget.h
@@ -41,7 +41,7 @@
#define _MIPS_SIM_ABI32 1
#define _MIPS_SIM_NABI32 2
#define _MIPS_SIM_ABI64 3
-#elif !defined(__OpenBSD__)
+#elif !defined(__OpenBSD__) && !defined(__FreeBSD__)
# include <sgidefs.h>
#endif