summaryrefslogtreecommitdiff
path: root/src/linux/cache.c
diff options
context:
space:
mode:
authorStefan O'Rear <sorear@fastmail.com>2020-09-03 05:23:40 -0400
committerRich Felker <dalias@aerifal.cx>2024-02-25 20:35:24 -0500
commit2c887f24da36fa30eccd72e50d91222828fa526e (patch)
treeb02374491fdd754f2627ff30aa9bb7e5536b0fab /src/linux/cache.c
parent69670e3bb3f78f9a1d172c9e263ca1b95f8196db (diff)
downloadmusl-2c887f24da36fa30eccd72e50d91222828fa526e.tar.gz
riscv: fall back to syscall __riscv_flush_icache
Matches glibc behavior and fixes a case where we could fall off the function without returning a value.
Diffstat (limited to 'src/linux/cache.c')
-rw-r--r--src/linux/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linux/cache.c b/src/linux/cache.c
index 45024309..e76f7812 100644
--- a/src/linux/cache.c
+++ b/src/linux/cache.c
@@ -45,6 +45,7 @@ int __riscv_flush_icache(void *start, void *end, unsigned long int flags)
if (!r) return r;
if (r != -ENOSYS) return __syscall_ret(r);
}
+ return syscall(SYS_riscv_flush_icache, start, end, flags);
}
weak_alias(__riscv_flush_icache, riscv_flush_icache);
#endif