From ffe74276cdfdb5648ba19cf0d989c09dd9bb1dc7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 28 Sep 2023 11:23:02 +0200 Subject: riscv64: define __NR_riscv_flush_icache if not available --- libc/sysdeps/linux/riscv64/cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps') 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 #include +#ifndef __NR_riscv_flush_icache +#define __NR_riscv_flush_icache 259 +#endif + typedef int (*func_type) (void *, void *, unsigned long int); static int -- cgit v1.2.3