ports/devel/libffi33/files/patch-src_riscv_ffi.c
Gleb Popov 957f31fc71 devel/libffi33: Add new port.
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.
2022-05-30 22:09:38 +03:00

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;
}