mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 15:11:41 +00:00
Use PROCESSOR_FEATURE_MAX instead of PROCESSOR_FEATURES_MAX. The latter is not official and a useless ducpliate. Use LARGE_INTEGER instead of TIME in ex/sysinfo.c
svn path=/trunk/; revision=12678
This commit is contained in:
parent
d5882cfd80
commit
849dcb1be9
4 changed files with 5 additions and 7 deletions
|
@ -13,8 +13,6 @@
|
||||||
#define PF_PAE_ENABLED 9
|
#define PF_PAE_ENABLED 9
|
||||||
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
|
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
|
||||||
|
|
||||||
#define PROCESSOR_FEATURES_MAX 64
|
|
||||||
|
|
||||||
typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
|
typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
|
||||||
{
|
{
|
||||||
StandardDesign,
|
StandardDesign,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sysinfo.c,v 1.14 2004/09/21 22:08:18 weiden Exp $
|
/* $Id$
|
||||||
*
|
*
|
||||||
* reactos/lib/kernel32/misc/sysinfo.c
|
* reactos/lib/kernel32/misc/sysinfo.c
|
||||||
*
|
*
|
||||||
|
@ -157,7 +157,7 @@ GetSystemInfo (
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
IsProcessorFeaturePresent(DWORD ProcessorFeature)
|
IsProcessorFeaturePresent(DWORD ProcessorFeature)
|
||||||
{
|
{
|
||||||
if (ProcessorFeature >= PROCESSOR_FEATURES_MAX)
|
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
||||||
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
||||||
|
|
|
@ -55,7 +55,7 @@ ExInit3 (VOID)
|
||||||
BOOLEAN STDCALL
|
BOOLEAN STDCALL
|
||||||
ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
|
ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
|
||||||
{
|
{
|
||||||
if (ProcessorFeature >= PROCESSOR_FEATURES_MAX)
|
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
||||||
return(SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
return(SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sysinfo.c,v 1.62 2004/12/16 22:36:09 gvg Exp $
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -723,7 +723,7 @@ QSI_DEF(SystemProcessorPerformanceInformation)
|
||||||
= (PSYSTEM_PROCESSORTIME_INFO) Buffer;
|
= (PSYSTEM_PROCESSORTIME_INFO) Buffer;
|
||||||
|
|
||||||
ULONG i;
|
ULONG i;
|
||||||
TIME CurrentTime;
|
LARGE_INTEGER CurrentTime;
|
||||||
PKPCR Pcr;
|
PKPCR Pcr;
|
||||||
|
|
||||||
*ReqSize = KeNumberProcessors * sizeof (SYSTEM_PROCESSORTIME_INFO);
|
*ReqSize = KeNumberProcessors * sizeof (SYSTEM_PROCESSORTIME_INFO);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue