Ignore:
Timestamp:
Nov 23, 1999, 8:31:35 PM (26 years ago)
Author:
sandervl
Message:

Added GetSystemInfo + IsProcessorFeaturePresent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.CPP

    r1773 r1815  
    1 /* $Id: KERNEL32.CPP,v 1.32 1999-11-19 14:32:55 achimha Exp $ */
     1/* $Id: KERNEL32.CPP,v 1.33 1999-11-23 19:31:34 sandervl Exp $ */
    22
    33/*
     
    621621
    622622  return(fEqual);
    623 }
    624 //******************************************************************************
    625 //******************************************************************************
    626 //TODO: Query processor info to complete this api
    627 //******************************************************************************
    628 VOID WIN32API GetSystemInfo(LPSYSTEM_INFO lpSystemInfo)
    629 {
    630   dprintf(("KERNEL32:  GetSystemInfo, not completely accurate\n"));
    631   lpSystemInfo->u.x.wProcessorArchitecture  = PROCESSOR_ARCHITECTURE_INTEL;
    632   lpSystemInfo->u.x.wReserved               = 0;
    633   lpSystemInfo->dwPageSize                  = 4096;
    634   // as of NT 4.0 SP3
    635   lpSystemInfo->lpMinimumApplicationAddress = (LPVOID)0x00010000;
    636   //TODO: detect Aurora and increase
    637   lpSystemInfo->lpMaximumApplicationAddress = (LPVOID)(512*1024*1024);
    638   lpSystemInfo->dwActiveProcessorMask       = 1;
    639   lpSystemInfo->dwNumberOfProcessors        = 1; //assuming non-SMP OS/2
    640   lpSystemInfo->dwProcessorType             = PROCESSOR_INTEL_PENTIUM;
    641   lpSystemInfo->dwAllocationGranularity     = 64*1024;
    642   lpSystemInfo->wProcessorLevel             = 5;  //Pentium
    643   lpSystemInfo->wProcessorRevision          = 0x201;   //Model 2 stepping 1 (obviously not correct)
    644623}
    645624//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.