This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12587] sysconf(_SC_*CACHE) returns 0 for all caches on some CPUs.
- From: "john.haxby at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 25 Mar 2011 12:31:17 +0000
- Subject: [Bug libc/12587] sysconf(_SC_*CACHE) returns 0 for all caches on some CPUs.
- Auto-submitted: auto-generated
- References: <bug-12587-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12587
John Haxby <john.haxby at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #6 from John Haxby <john.haxby at oracle dot com> 2011-03-25 12:31:06 UTC ---
I moved the cpuid4 code to handle_intel() so that it is used whenever the
cpuid4 is available.
This seems to be a better place to put the test because it avoids a cpuid2
which is not going to be useful and it also works on a greater range of
hardware which makes it a bit easier to test (the Xeon X5670 I have access to
is on a different continent).
I also replaced the asm with __cpuid_count: the previous version didn't use the
macro and so didn't take into account the "#if defined(__i386__) &&
defined(__PIC__)" that the macro definition uses.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.