Explorar o código

riscv64: define __NR_riscv_flush_icache if not available

Waldemar Brodkorb %!s(int64=2) %!d(string=hai) anos
pai
achega
ffe74276cd
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      libc/sysdeps/linux/riscv64/cache.c

+ 4 - 0
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