diff options
Diffstat (limited to 'emu/Linux/os.c')
| -rw-r--r-- | emu/Linux/os.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/emu/Linux/os.c b/emu/Linux/os.c index f541311f..336d0443 100644 --- a/emu/Linux/os.c +++ b/emu/Linux/os.c @@ -521,3 +521,15 @@ stackalloc(Proc *p, void **tos) *(Proc **)rv = p; return rv; } + +#ifdef LINUX_ARM +#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; +} +#endif |
