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
* *
@ -99,6 +99,10 @@ GetSystemInfo (
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)
{ {
@ -112,10 +116,12 @@ GetSystemInfo (
Si->dwProcessorType = PROCESSOR_PPC_604; Si->dwProcessorType = PROCESSOR_PPC_604;
break; break;
case 6: case 6:
Si->dwProcessorType = -1; /* FIXME: what value? */ /* PPC 603+ */
Si->dwProcessorType = PROCESSOR_PPC_603;
break; break;
case 9: case 9:
Si->dwProcessorType = -1; /* FIXME: what value? */ /* PPC 604+ */
Si->dwProcessorType = PROCESSOR_PPC_604;
break; break;
case 20: case 20:
Si->dwProcessorType = PROCESSOR_PPC_620; Si->dwProcessorType = PROCESSOR_PPC_620;