Chameleon

Chameleon Commit Details

Date:2011-09-14 16:32:12 (12 years 6 months ago)
Author:armel cadet-petit
Commit:1526
Parents: 1525
Message:fixed a bug in cpu.c
Changes:
M/branches/cparm/i386/libsaio/cpu.c

File differences

branches/cparm/i386/libsaio/cpu.c
495495
496496
497497
498
499
500
501
502
503
504
505
506
498
507499
508500
509501
......
516508
517509
518510
511
512
513
514
515
516
517
518
519519
520520
521521
p->CPU.ExtFamily = bitfield(reg[eax], 27, 20);
p->CPU.Brand = bitfield(reg[ebx], 7, 0);
p->CPU.Features = quad(reg[ecx], reg[edx]);
if (p->CPU.cpuid_max_ext >= 0x80000001)
{
do_cpuid(0x80000001, reg);
p->CPU.ExtFeatures =
quad(reg[ecx], reg[edx]);
}
/* Fold extensions into family/model */
if (p->CPU.Family == 0x0f)
p->CPU.Family += p->CPU.ExtFamily;
else
logical_per_package = 1;
if (p->CPU.cpuid_max_ext >= 0x80000001)
{
do_cpuid(0x80000001, reg);
p->CPU.ExtFeatures =
quad(reg[ecx], reg[edx]);
}
if (p->CPU.cpuid_max_ext >= 0x80000007)
{
do_cpuid(0x80000007, reg);

Archive Download the corresponding diff file

Revision: 1526