ntdll: Improved reporting of CPU Level and Revision on ARM.

This commit is contained in:
André Hentschel 2013-11-10 22:40:23 +01:00 committed by Alexandre Julliard
parent c1a0fbd146
commit eef5e45ee6

View File

@ -1080,10 +1080,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
while (isspace(*value)) value++;
if ((s = strchr(value,'\n')))
*s='\0';
if (!strcasecmp(line, "CPU architecture"))
if (!strcasecmp(line, "CPU part"))
{
if (isdigit(value[0]))
info->Level = atoi(value);
info->Level = strtol(value, NULL, 16);
continue;
}
if (!strcasecmp(line, "CPU revision"))
{
if (isdigit(value[0]))
info->Revision = atoi(value);
continue;
}
if (!strcasecmp(line, "features"))