This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Common cpuid wrappers, use SYS_cpuid when available


* 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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]