Changeset 21343 for trunk/src


Ignore:
Timestamp:
Oct 4, 2009, 9:36:57 AM (16 years ago)
Author:
vladest
Message:
  1. Increased number of handles (4096 is not enougth for some Flash animations)
  2. Added CPU cycles couter for more accurate profiling
Location:
trunk/src/kernel32
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/HandleManager.cpp

    r21339 r21343  
    8484
    8585// this is the size of our currently static handle table
    86 #define MAX_OS2_HMHANDLES       (4*1024)
     86#define MAX_OS2_HMHANDLES       (16*1024)
    8787#define ERROR_SYS_INTERNAL      328
    8888
  • trunk/src/kernel32/asmutil.asm

    r9946 r21343  
    239239_clear_bit endp
    240240
     241rdtsc           macro
     242                db      0Fh, 31h
     243endm
     244
     245                public  GetPentiumTSC
     246GetPentiumTSC   proc    near
     247                mov     ecx , [esp + 4]
     248                rdtsc
     249                mov     [ecx] , eax
     250                mov     [ecx + 4] , edx
     251                xor     eax , eax
     252                ret
     253GetPentiumTSC   endp
     254
    241255CODE32          ENDS
    242256
  • trunk/src/kernel32/cpu.cpp

    r10475 r21343  
    194194                        PF[PF_COMPARE_EXCHANGE_DOUBLE] = TRUE;
    195195                if (features & CPUID_MMX)
    196                         PF[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
     196                    PF[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
    197197
    198198                //Create FPU key if one is present
  • trunk/src/kernel32/dbglog.cpp

    r21339 r21343  
    1616*******************************************************************************/
    1717
     18#define INCL_MISC
    1819#define INCL_BASE
    1920#define INCL_WIN
     
    6465#define PRINTFMAXBUF PRINTFIDSIZE+PRINTFLINELEN
    6566
     67ULONG GetPentiumTSC (QWORD * tsc);
    6668
    6769/*****************************************************************************
  • trunk/src/kernel32/oslibdos.cpp

    r21339 r21343  
    13141314  APIRET   rc;
    13151315  DWORD    newoffset;
    1316 
     1316 
    13171317  switch(method)
    13181318  {
     
    13491349      rc = DosSetFilePtr(hFile, OffsetLow, method, &newoffset);
    13501350
     1351  dprintf(("OSLibDosSetFilePointer. method: %08x wanted: %08x moved to %08x",
     1352           method, OffsetLow, newoffset));
    13511353  if(rc)
    13521354  {
Note: See TracChangeset for help on using the changeset viewer.