[PATCH v6 1/5] riscv: Add Linux hwprobe syscall support
Florian Weimer
fweimer@redhat.com
Thu Aug 3 07:24:00 GMT 2023
* Evan Green:
> +int __riscv_hwprobe (struct riscv_hwprobe *__pairs, size_t __pair_count,
> + size_t __cpu_count, unsigned long int *__cpus,
> + unsigned int __flags)
> +{
> + return INLINE_SYSCALL_CALL (riscv_hwprobe, __pairs, __pair_count,
> + __cpu_count, __cpus, __flags);
> +}
INLINE_SYSCALL_CALL uses errno, and the caller might not be able to
access that (in case of an unrelocated IFUNC resolver). Consider using
INTERNAL_SYSCALL_CALL (perhaps negated) instead.
Thanks,
Florian
More information about the Libc-alpha
mailing list