Add more processor information.

Patch by Christoph_vW. Fixes bug #321.

svn path=/trunk/; revision=9566
This commit is contained in:
Eric Kohl 2004-05-31 11:41:14 +00:00
parent 481600afb3
commit f9375c3f90

View file

@ -1,4 +1,4 @@
/* $Id: sysinfo.c,v 1.11 2004/03/09 16:35:15 fireball Exp $ /* $Id: sysinfo.c,v 1.12 2004/05/31 11:41:14 ekohl Exp $
* *
* reactos/lib/kernel32/misc/sysinfo.c * reactos/lib/kernel32/misc/sysinfo.c
* *
@ -98,29 +98,35 @@ GetSystemInfo (
case PROCESSOR_ARCHITECTURE_ALPHA: case PROCESSOR_ARCHITECTURE_ALPHA:
Si->dwProcessorType = PROCESSOR_ALPHA_21064; Si->dwProcessorType = PROCESSOR_ALPHA_21064;
break; break;
case PROCESSOR_ARCHITECTURE_IA64:
Si->dwProcessorType = PROCESSOR_INTEL_IA64;
break;
case PROCESSOR_ARCHITECTURE_PPC: case PROCESSOR_ARCHITECTURE_PPC:
switch (Spi.ProcessorLevel) switch (Spi.ProcessorLevel)
{ {
case 1: case 1:
Si->dwProcessorType = PROCESSOR_PPC_601; Si->dwProcessorType = PROCESSOR_PPC_601;
break; break;
case 3: case 3:
Si->dwProcessorType = PROCESSOR_PPC_603; Si->dwProcessorType = PROCESSOR_PPC_603;
break; break;
case 4: case 4:
Si->dwProcessorType = PROCESSOR_PPC_604; Si->dwProcessorType = PROCESSOR_PPC_604;
break; break;
case 6: case 6:
Si->dwProcessorType = -1; /* FIXME: what value? */ /* PPC 603+ */
break; Si->dwProcessorType = PROCESSOR_PPC_603;
case 9: break;
Si->dwProcessorType = -1; /* FIXME: what value? */ case 9:
break; /* PPC 604+ */
case 20: Si->dwProcessorType = PROCESSOR_PPC_604;
Si->dwProcessorType = PROCESSOR_PPC_620; break;
break; case 20:
default: Si->dwProcessorType = PROCESSOR_PPC_620;
break;
default:
Si->dwProcessorType = -1; Si->dwProcessorType = -1;
} }
break; break;