1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/*
* arch/sh/kernel/sys_sh.c:
* asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op);
*/
#include "trinity.h"
#include "sanitise.h"
#include <asm/cachectl.h>
struct syscall syscall_sh_cacheflush = {
.name = "sh_cacheflush",
.num_args = 3,
.arg1name = "addr",
.arg1type = ARG_ADDRESS,
.arg2name = "len",
.arg2type = ARG_LEN,
.arg3name = "op",
.arg3type = ARG_LIST,
.arg3list = {
.num = 4,
.values = {
CACHEFLUSH_D_INVAL,
CACHEFLUSH_D_WB,
CACHEFLUSH_D_PURGE,
CACHEFLUSH_I,
},
},
};
|