diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
| commit | 6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch) | |
| tree | 314123bcab78ff295f38f85f31dc141e5fe22d15 /emu/Linux/os.c | |
| parent | 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff) | |
20061220
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 |
