about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/riscv/hwprobe.c
diff options
context:
space:
mode:
authorEvan Green <evan@rivosinc.com>2024-02-27 14:56:39 -0800
committerPalmer Dabbelt <palmer@rivosinc.com>2024-03-01 07:14:57 -0800
commite7919e0db28837ae5e4315933a061a7c2eda442e (patch)
treebb20cb963ffaebd3a4cb5e7960eb78e6e7127a26 /sysdeps/unix/sysv/linux/riscv/hwprobe.c
parentc6c33339b45281590f9db138ba6c9d79acb1da27 (diff)
downloadglibc-e7919e0db28837ae5e4315933a061a7c2eda442e.tar.gz
glibc-e7919e0db28837ae5e4315933a061a7c2eda442e.tar.xz
glibc-e7919e0db28837ae5e4315933a061a7c2eda442e.zip
riscv: Add hwprobe vdso call support
The new riscv_hwprobe syscall also comes with a vDSO for faster answers
to your most common questions. Call in today to speak with a kernel
representative near you!

Signed-off-by: Evan Green <evan@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/hwprobe.c')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/hwprobe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/hwprobe.c b/sysdeps/unix/sysv/linux/riscv/hwprobe.c
index 28a448175b..e64c159eb3 100644
--- a/sysdeps/unix/sysv/linux/riscv/hwprobe.c
+++ b/sysdeps/unix/sysv/linux/riscv/hwprobe.c
@@ -28,8 +28,8 @@ int __riscv_hwprobe (struct riscv_hwprobe *pairs, size_t pair_count,
 {
   int r;
 
-  r = INTERNAL_SYSCALL_CALL (riscv_hwprobe, pairs, pair_count,
-                             cpu_count, cpus, flags);
+  r = INTERNAL_VSYSCALL (riscv_hwprobe, 5, pairs, pair_count,
+                         cpu_count, cpus, flags);
 
   /* Negate negative errno values to match pthreads API. */
   return -r;