ref: 00c219c7d9c2b9f60c2db0e1ba7289b2301209a7
dir: /emu/Linux/segflush-arm.c/
#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; }