mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
This is a compat port needed mainly for binaries downloaded by devel/stack. See the commit message for devel/libffi321 and the linked PR for detailed explanation.
12 lines
324 B
C
12 lines
324 B
C
--- 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;
|
|
}
|