blob: 0045c5a8e6f39d6a548aab1cfbbb3f8a0ffaf7d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
|