mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Calculate L2 cache size for AMD CPUs.
svn path=/trunk/; revision=26907
This commit is contained in:
parent
15e6e8404d
commit
c6c58b7697
1 changed files with 13 additions and 5 deletions
|
@ -510,13 +510,21 @@ KiGetCacheInformation(VOID)
|
|||
}
|
||||
} while (--CacheRequests);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
|
||||
case CPU_AMD:
|
||||
case CPU_AMD:
|
||||
|
||||
/* FIXME */
|
||||
DPRINT1("Not handling AMD caches yet\n");
|
||||
break;
|
||||
/* Check if we support CPUID 0x80000006 */
|
||||
CPUID(Data, 0x80000000);
|
||||
if (Data[0] >= 6)
|
||||
{
|
||||
/* Get 2nd level cache and tlb size */
|
||||
CPUID(Data, 0x80000006);
|
||||
|
||||
/* Set the L2 Cache Size */
|
||||
Pcr->SecondLevelCacheSize = (Data[2] & 0xFFFF0000) >> 6;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue