File: cacheflush.c

package info (click to toggle)
trinity 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,252 kB
  • ctags: 2,738
  • sloc: ansic: 24,011; sh: 322; makefile: 141
file content (29 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (7)
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,
		},
	},
};