diff options
Diffstat (limited to 'x11-toolkits/copperspice/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h')
-rw-r--r-- | x11-toolkits/copperspice/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-toolkits/copperspice/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h b/x11-toolkits/copperspice/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h new file mode 100644 index 000000000000..0045c5a8e6f3 --- /dev/null +++ b/x11-toolkits/copperspice/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h @@ -0,0 +1,27 @@ +--- src/3rdparty/webkit/Source/JavaScriptCore/jit/ExecutableAllocator.h.orig 2022-06-05 21:14:42 UTC ++++ src/3rdparty/webkit/Source/JavaScriptCore/jit/ExecutableAllocator.h +@@ -54,6 +54,10 @@ + #include <unistd.h> + #endif + ++#if OS(FREEBSD) ++#include <machine/sysarch.h> ++#endif ++ + #if OS(WINCE) + // From pkfuncs.h (private header file from the Platform Builder) + #define CACHE_SYNC_ALL 0x07F +@@ -304,6 +308,13 @@ class ExecutableAllocator { (public) + : + : "r" (code), "r" (reinterpret_cast<char*>(code) + size) + : "r0", "r1", "r2"); ++ } ++#elif (CPU(ARM_TRADITIONAL) || CPU(ARM_THUMB2)) && OS(FREEBSD) ++ static void cacheFlush(void *code, size_t size) ++ { ++ struct arm_sync_icache_args asia = { reinterpret_cast<uintptr_t>(code), size }; ++ ++ sysarch(ARM_SYNC_ICACHE, &asia); + } + #elif OS(WINCE) + static void cacheFlush(void* code, size_t size) |