Changeset 1815 for trunk/src


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

Added GetSystemInfo + IsProcessorFeaturePresent

Location:
trunk/src/kernel32
Files:
3 added
4 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//******************************************************************************
  • trunk/src/kernel32/KERNEL32.DEF

    r1698 r1815  
    1 ; $Id: KERNEL32.DEF,v 1.51 1999-11-10 23:25:50 phaller Exp $
     1; $Id: KERNEL32.DEF,v 1.52 1999-11-23 19:31:34 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    942942    lstrncmpW                  = _lstrncmpW@12               @786
    943943
     944    IsProcessorFeaturePresent  = _IsProcessorFeaturePresent@4 @880
     945
    944946    GetFileAttributesExA       = _GetFileAttributesExA@12    @874
    945947    GetFileAttributesExW       = _GetFileAttributesExW@12    @875
  • trunk/src/kernel32/initterm.cpp

    r1811 r1815  
    1 /* $Id: initterm.cpp,v 1.26 1999-11-22 20:35:50 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.27 1999-11-23 19:31:35 sandervl Exp $ */
    22
    33/*
     
    4646#include "hmdevio.h"
    4747#include <windllbase.h>
     48#include "cpuhlp.h"
    4849
    4950/*-------------------------------------------------------------------*/
     
    140141            RegisterDevices();
    141142            Win32DllBase::setDefaultRenaming();
     143            InitSystemInfo();
    142144            break;
    143145        }
  • trunk/src/kernel32/makefile

    r1811 r1815  
    1 # $Id: makefile,v 1.59 1999-11-22 20:35:50 sandervl Exp $
     1# $Id: makefile,v 1.60 1999-11-23 19:31:35 sandervl Exp $
    22
    33#
     
    3232CONBUFFER.OBJ CONOUT.OBJ UNICODE.OBJ network.OBJ HMDEVIO.OBJ \
    3333profile.obj THREAD.OBJ virtual.obj THUNK.OBJ OBSOLETE.OBJ COMM.OBJ\
    34 MESSAGE.OBJ RESOURCE.OBJ EXCEPTIONS.OBJ heapshared.obj \
     34MESSAGE.OBJ RESOURCE.OBJ EXCEPTIONS.OBJ heapshared.obj cpuhlp.obj \
    3535LFILE.OBJ NPIPE.OBJ oslibdos.obj oslibmisc.obj MISC.OBJ EXCEPTUTIL.OBJ \
    3636LANG.OBJ ICCIO.OBJ MAP.OBJ WIN32UTIL.OBJ heap.OBJ heapstring.obj \
     
    4343pefile.OBJ winimgres.OBJ wintls.obj async.OBJ fileio.obj \
    4444atom.obj disk.obj directory.obj cvtbitmap.obj hmmmap.obj winfakepeldr.obj \
    45 cvtaccel.obj cvticon.obj cvticongrp.obj oslibexcept.obj \
     45cvtaccel.obj cvticon.obj cvticongrp.obj oslibexcept.obj cpu.obj \
    4646cvtcursor.obj cvtcursorgrp.obj stubs.obj interlock.obj toolhelp.obj
    4747
     
    7474$(PDWIN32_LIB)\LIBCONV.LIB
    7575$(PDWIN32_LIB)\odincrt.lib
     76$(PDWIN32_LIB)\advapi32.lib
    7677OS2386.LIB
    7778$(RTLLIB_O)
     
    145146    initterm.h
    146147
    147 initterm.OBJ: .\initterm.cpp initterm.h  $(PDWIN32_INCLUDE)\heapshared.h  mmap.h directory.h hmdevio.h
     148initterm.OBJ: .\initterm.cpp initterm.h  $(PDWIN32_INCLUDE)\heapshared.h  mmap.h directory.h hmdevio.h cpuhlp.h
    148149
    149150thunk.OBJ: \
     
    376377
    377378heapshared.obj: heapshared.cpp $(PDWIN32_INCLUDE)\heapshared.h
    378 
     379cpu.obj: cpu.cpp cpuhlp.h
     380cpuhlp.obj: cpuhlp.asm
    379381
    380382clean:
Note: See TracChangeset for help on using the changeset viewer.