summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-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