Displaying 1 result from an estimated 1 matches for "__clear_cache_c".
Did you mean:
__clear_cache
2013 May 24
0
[LLVMdev] ARM __clear_cache fix for compiler-rt when compiling Python
...===
--- contrib/compiler-rt/lib/clear_cache.c (revision 250739)
+++ contrib/compiler-rt/lib/clear_cache.c (working copy)
@@ -21,6 +21,23 @@
* specified range.
*/
+/* python ffi routines call it too */
+
+#if defined(__arm__) && defined(__clang__)
+#pragma redefine_extname __clear_cache_c __clear_cache
+void __clear_cache_c(void* start, void* end)
+{
+ extern int sysarch(int number, void *args);
+ struct
+ {
+ unsigned int addr;
+ int len;
+ } s;
+ s.addr = (unsigned int)(start) & ~0x1f;
+ s.len = (int)((((unsigned int)end + 0x1f) &...