File: cacheflush.c

package info (click to toggle)
trinity 1.9%2Bgit20230109.87f1530-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,116 kB
  • sloc: ansic: 33,463; sh: 536; makefile: 163
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,
		},
	},
};