This is the mail archive of the glibc-bugs@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]

[Bug libc/12587] sysconf(_SC_*CACHE) returns 0 for all caches on some CPUs.


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.


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