The libcrypto library constructor calls the riscv_hwprobe syscall through
the syscall wrapper. Return an error with ENOSYS.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Link: https://github.com/kmod-project/kmod/pull/387
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
return nextlib_syscall(__NR_gettid);
}
+#ifdef __NR_riscv_hwprobe
+ if (__sysno == __NR_riscv_hwprobe) {
+ 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