summaryrefslogtreecommitdiff
path: root/data/pcre/clearcache.diff
blob: c404dccf493a19dd2ba2bbb2727ef243d0e91622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -ru pcre-8.30/sljit/sljitConfigInternal.h pcre-8.30+iPhone/sljit/sljitConfigInternal.h
--- pcre-8.30/sljit/sljitConfigInternal.h	2012-01-15 11:28:29.000000000 +0000
+++ pcre-8.30+iPhone/sljit/sljitConfigInternal.h	2012-05-02 00:29:17.000000000 +0000
@@ -207,9 +207,15 @@
 
 #else
 
+#ifdef __APPLE__
+/* Apple does not believe in __clear_cache */
+#define SLJIT_CACHE_FLUSH(from, to) \
+	sys_icache_invalidate((char*)(from), (char*)(to) - (char*)(from))
+#else
 /* Calls __ARM_NR_cacheflush on ARM-Linux. */
 #define SLJIT_CACHE_FLUSH(from, to) \
 	__clear_cache((char*)(from), (char*)(to))
+#endif
 
 #endif