diff options
Diffstat (limited to 'emu/Android/segflush-arm.c')
| -rw-r--r-- | emu/Android/segflush-arm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emu/Android/segflush-arm.c b/emu/Android/segflush-arm.c new file mode 100644 index 0000000..0392977 --- /dev/null +++ b/emu/Android/segflush-arm.c @@ -0,0 +1,14 @@ +#include <sys/types.h> +#include <sys/syscall.h> + +#include "dat.h" + +#define SYS_cacheflush __ARM_NR_cacheflush + +int +segflush(void *a, ulong n) +{ + if(n) + syscall(SYS_cacheflush, a, (char*)a+n-1, 1); + return 0; +} |
