aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/riscv/flush-icache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/flush-icache.c')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/flush-icache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
index 4f05542996..c5bd60d9c2 100644
--- a/sysdeps/unix/sysv/linux/riscv/flush-icache.c
+++ b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
@@ -38,9 +38,7 @@ __riscv_flush_icache_syscall (void *start, void *end, unsigned long int flags)
static func_type
__lookup_riscv_flush_icache (void)
{
- PREPARE_VERSION_KNOWN (linux_version, LINUX_4_15);
-
- func_type func = _dl_vdso_vsym ("__vdso_flush_icache", &linux_version);
+ func_type func = get_vdso_symbol ("__vdso_flush_icache");
/* If there is no vDSO entry then call the system call directly. All Linux
versions provide the vDSO entry, but QEMU's user-mode emulation doesn't