Module: wine Branch: master Commit: eef5e45ee6aae7029ec3ec0565fbbdc2ee29b59f URL: http://source.winehq.org/git/wine.git/?a=commit;h=eef5e45ee6aae7029ec3ec0565...
Author: André Hentschel nerv@dawncrow.de Date: Sun Nov 10 22:40:23 2013 +0100
ntdll: Improved reporting of CPU Level and Revision on ARM.
---
dlls/ntdll/nt.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index c9499d6..db8272f 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -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"))