1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file.
This commit is contained in:
Ulrich Drepper
2004-03-12 21:35:27 +00:00
parent 932dfea7ba
commit f4089ca1d6
5 changed files with 257 additions and 1 deletions

View File

@ -143,7 +143,13 @@ intel_check_word (int name, unsigned int value, bool *has_level_2,
unsigned int byte = value & 0xff;
if (byte == 0x40)
*no_level_2_or_3 = true;
{
*no_level_2_or_3 = true;
if (folded_name == _SC_LEVEL3_CACHE_SIZE)
/* No need to look further. */
break;
}
else
{
struct intel_02_cache_info *found;
@ -290,6 +296,7 @@ __sysconf (int name)
: "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
: "0" (0));
/* This spells out "GenuineIntel". */
if (ebx == 0x756e6547 && ecx == 0x6c65746e && edx == 0x49656e69)
return handle_intel (name, eax);
// XXX Fill in more vendors.