svn commit: r557291 - head/devel/libffi/files
Kristof Provost
kp at FreeBSD.org
Tue Dec 8 16:04:37 UTC 2020
Author: kp (src committer)
Date: Tue Dec 8 16:04:36 2020
New Revision: 557291
URL: https://svnweb.freebsd.org/changeset/ports/557291
Log:
devel/libffi: Fix abort() on FreeBSD riscv related to __clear_case()
Like on mips, disable the __builtin___clear_cache() call because it triggers
aborts.
PR: 251564
Approved by: zeising
Added:
head/devel/libffi/files/patch-src_riscv_ffi.c (contents, props changed)
Added: head/devel/libffi/files/patch-src_riscv_ffi.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libffi/files/patch-src_riscv_ffi.c Tue Dec 8 16:04:36 2020 (r557291)
@@ -0,0 +1,12 @@
+--- src/riscv/ffi.c.orig 2019-10-31 14:49:54 UTC
++++ src/riscv/ffi.c
+@@ -417,7 +417,9 @@ ffi_status ffi_prep_closure_loc(ffi_clos
+ closure->fun = fun;
+ closure->user_data = user_data;
+
++#if !defined(__FreeBSD__)
+ __builtin___clear_cache(codeloc, codeloc + FFI_TRAMPOLINE_SIZE);
++#endif
+
+ return FFI_OK;
+ }
More information about the svn-ports-head
mailing list