diff options
| author | Charles.Forsyth <devnull@localhost> | 2009-04-02 12:47:45 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2009-04-02 12:47:45 +0000 |
| commit | 0b2199ffc78ecd6fbb8754fa975bebb8d5814a06 (patch) | |
| tree | bca935c240a745b06df16d6c87bbe1a77a78c289 /emu/Linux/segflush-arm.c | |
| parent | a3d4017d8d3be485b256b15d2344afac09112204 (diff) | |
20090402-1346
Diffstat (limited to 'emu/Linux/segflush-arm.c')
| -rw-r--r-- | emu/Linux/segflush-arm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emu/Linux/segflush-arm.c b/emu/Linux/segflush-arm.c new file mode 100644 index 00000000..03929777 --- /dev/null +++ b/emu/Linux/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; +} |
