summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/kvx/cachectl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/kvx/cachectl.c')
-rw-r--r--libc/sysdeps/linux/kvx/cachectl.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/kvx/cachectl.c b/libc/sysdeps/linux/kvx/cachectl.c
new file mode 100644
index 000000000..9afeb44a1
--- /dev/null
+++ b/libc/sysdeps/linux/kvx/cachectl.c
@@ -0,0 +1,15 @@
+/*
+ * This file is subject to the terms and conditions of the LGPL V2.1
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2020 Kalray Inc.
+ */
+
+#include <sys/syscall.h>
+
+#ifdef __NR_cachectl
+# include <sys/cachectl.h>
+_syscall4(int, cachectl, void *, addr, size_t, len,
+ unsigned long, cache, unsigned long, flags)
+#endif