diff options
author | Stefan O'Rear <sorear@fastmail.com> | 2020-09-03 05:23:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-02-25 20:35:24 -0500 |
commit | 2c887f24da36fa30eccd72e50d91222828fa526e (patch) | |
tree | b02374491fdd754f2627ff30aa9bb7e5536b0fab /src/linux/cache.c | |
parent | 69670e3bb3f78f9a1d172c9e263ca1b95f8196db (diff) | |
download | musl-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.c | 1 |
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 |