parisc: Add cacheflush() syscall

Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Helge Deller
2023-05-26 10:59:15 +02:00
parent 40c9c62c85
commit c6d96328fe
3 changed files with 62 additions and 0 deletions
+12
View File
@@ -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 */