summaryrefslogtreecommitdiff
path: root/arch/parisc/include/uapi
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-05-26 11:59:15 +0300
committerHelge Deller <deller@gmx.de>2023-06-30 18:14:13 +0300
commitc6d96328fecdda16e12f3b3c33f3677f4bcef89f (patch)
tree1e58afc245b8d10d46b303070bc186f45a43b69c /arch/parisc/include/uapi
parent40c9c62c85a8b7e58350f2d00649f9e0060150b7 (diff)
downloadlinux-c6d96328fecdda16e12f3b3c33f3677f4bcef89f.tar.xz
parisc: Add cacheflush() syscall
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/uapi')
-rw-r--r--arch/parisc/include/uapi/asm/cachectl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/cachectl.h b/arch/parisc/include/uapi/asm/cachectl.h
new file mode 100644
index 000000000000..68d6b455498b
--- /dev/null
+++ b/arch/parisc/include/uapi/asm/cachectl.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _ASM_CACHECTL
+#define _ASM_CACHECTL
+
+/*
+ * Options for cacheflush system call
+ */
+#define ICACHE (1<<0) /* flush instruction cache */
+#define DCACHE (1<<1) /* writeback and flush data cache */
+#define BCACHE (ICACHE|DCACHE) /* flush both caches */
+
+#endif /* _ASM_CACHECTL */