ARM __clear_cache equivalent for iOS devices
arm, ios
Solution
As iOS is a *NIX-based platform, and you can compile code with apple's version of GCC (LLVM-GCC 4.2), you should just be able to make a function call to `__clear_cache()`, like this:
extern void __clear_cache(char *beg, char *end);
__clear_cache(beg, end);
Note that this will NOT work with `Apple LLVM Compiler 3.1`, only with GCC for some odd reason.
Problem
I'm porting a library to the iPhone which makes a call to `__clear_cache`. A little research digs up this nice explanation of what it does. The article lists the library functions for Linux, Windows and even Android. I don't suppose there is an equivalent for iOS devices? Or some other workaround I can implement?