Gbp-Pq: Name fix_riscv64_tests
return nextlib_syscall(__NR_gettid);
}
+#ifdef __NR_riscv_hwprobe
+ if (__sysno == __NR_riscv_hwprobe) {
+ /*
+ * RISC-V Hardware Probing Interface. This might be used by
+ * some libraries (e.g. openssl) to probe the hardware
+ * capabilities. Just pretend the syscall doesn't exist, this
+ * will just fallback to less optimized code.
+ */
+ errno = ENOSYS;
+ return -1;
+ }
+#endif
+
/*
* FIXME: no way to call the libc function due since this is a
* variadic argument function and we don't have a vsyscall() variant