mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Added more (in case we run on PowerPC) processor ids returned by GetSystemInfo(), by Christoph von Wittich.
svn path=/trunk/; revision=8610
This commit is contained in:
parent
b6ead4d81a
commit
e4ac5bf4f4
1 changed files with 24 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sysinfo.c,v 1.10 2004/01/23 21:16:03 ekohl Exp $
|
/* $Id: sysinfo.c,v 1.11 2004/03/09 16:35:15 fireball Exp $
|
||||||
*
|
*
|
||||||
* reactos/lib/kernel32/misc/sysinfo.c
|
* reactos/lib/kernel32/misc/sysinfo.c
|
||||||
*
|
*
|
||||||
|
@ -100,7 +100,29 @@ GetSystemInfo (
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROCESSOR_ARCHITECTURE_PPC:
|
case PROCESSOR_ARCHITECTURE_PPC:
|
||||||
Si->dwProcessorType = -1; /* FIXME: what value? */
|
switch (Spi.ProcessorLevel)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
Si->dwProcessorType = PROCESSOR_PPC_601;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
Si->dwProcessorType = PROCESSOR_PPC_603;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
Si->dwProcessorType = PROCESSOR_PPC_604;
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
Si->dwProcessorType = -1; /* FIXME: what value? */
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
|
Si->dwProcessorType = -1; /* FIXME: what value? */
|
||||||
|
break;
|
||||||
|
case 20:
|
||||||
|
Si->dwProcessorType = PROCESSOR_PPC_620;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Si->dwProcessorType = -1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue