summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/riscv64/cache.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-09-28 11:23:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2023-09-28 11:23:02 +0200
commitffe74276cdfdb5648ba19cf0d989c09dd9bb1dc7 (patch)
treeaa511142b374db187f68e7f7bc10f948d75c759a /libc/sysdeps/linux/riscv64/cache.c
parent133909a8e052d8bf6fe21d9e3dd5546d0198ac7e (diff)
riscv64: define __NR_riscv_flush_icache if not available
Diffstat (limited to 'libc/sysdeps/linux/riscv64/cache.c')
-rw-r--r--libc/sysdeps/linux/riscv64/cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/riscv64/cache.c b/libc/sysdeps/linux/riscv64/cache.c
index 216b333f3..aa99a2a0d 100644
--- a/libc/sysdeps/linux/riscv64/cache.c
+++ b/libc/sysdeps/linux/riscv64/cache.c
@@ -19,6 +19,10 @@
#include <atomic.h>
#include <sys/syscall.h>
+#ifndef __NR_riscv_flush_icache
+#define __NR_riscv_flush_icache 259
+#endif
+
typedef int (*func_type) (void *, void *, unsigned long int);
static int