[PATCH] Common cpuid wrappers, use SYS_cpuid when available
Florian Weimer
fw@deneb.enyo.de
Wed Mar 9 20:22:00 GMT 2016
* Piotr Henryk Dabrowski:
> However I would like to ask you to say if you *would* ACK this *if* the
> SYS_cpuid system call were to be adopted into the kernel.
<cpuid.h> is provided by GCC, it would have to change as well. The
real challenge is the pervasive use of inline assembly, though.
Currently, you cannot invoke system calls from IFUNC selectors. This
means that one major application for IFUNC selectors cannot use the
system call.
I also wonder if the relevant CPUID flags should rather be part of
auxv, or if this functionality should be a vsyscall instead. Both
would avoid circularity issues (you may need to do a CPUID before
doing a system call, and vice versa).
More information about the Libc-alpha
mailing list