Changeset 6133 for trunk/src


Ignore:
Timestamp:
Jun 27, 2001, 9:09:36 PM (24 years ago)
Author:
sandervl
Message:

stack alignment change

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptutil.asm

    r5564 r6133  
    1 ; $Id: exceptutil.asm,v 1.16 2001-04-22 09:00:19 sandervl Exp $
     1; $Id: exceptutil.asm,v 1.17 2001-06-27 19:09:35 sandervl Exp $
    22
    33;/*
     
    266266        ret
    267267_AsmCallThreadHandler endp
     268
     269        PUBLIC _CallEntryPoint
     270_CallEntryPoint proc near
     271        push    ebp
     272        mov     ebp, esp
     273
     274        mov     eax, esp
     275        sub     eax, 16
     276        and     eax, 0FFFFFFF0h
     277        add     eax, 4
     278        mov     esp, eax
     279
     280        push    dword ptr [ebp+12]
     281        mov     eax, dword ptr [ebp+8]
     282        call    eax
     283
     284        mov     esp, ebp
     285        pop     ebp
     286        ret
     287_CallEntryPoint endp
     288
    268289
    269290; 281 static DWORD EXC_CallHandler( WINEXCEPTION_RECORD *record, WINEXCEPTION_FRAME *frame,
  • trunk/src/kernel32/exceptutil.h

    r5354 r6133  
    1 /* $Id: exceptutil.h,v 1.11 2001-03-22 18:16:41 sandervl Exp $ */
     1/* $Id: exceptutil.h,v 1.12 2001-06-27 19:09:35 sandervl Exp $ */
    22
    33/*
     
    4747ULONG CDECL AsmCallThreadHandler(ULONG handler, LPVOID parameter);
    4848
     49DWORD CDECL CallEntryPoint(DWORD entryPoint, DWORD parameter);
     50
    4951#ifdef __cplusplus
    5052}
  • trunk/src/kernel32/thread.cpp

    r6132 r6133  
    1 /* $Id: thread.cpp,v 1.30 2001-06-27 15:34:41 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.31 2001-06-27 19:09:35 sandervl Exp $ */
    22
    33/*
     
    132132  Win32DllBase::attachThreadToAllDlls();          //send DLL_THREAD_ATTACH message to all dlls
    133133
    134   //SvL: Leave this here. For some weird reason this affects performance
    135   //     of floating point apps. (at least for one fortan benchmark)
    136   double tmp;
    137134  //Set FPU control word to 0x27F (same as in NT)
    138135  CONTROL87(0x27F, 0xFFF);
  • trunk/src/kernel32/winexebase.cpp

    r6132 r6133  
    1 /* $Id: winexebase.cpp,v 1.17 2001-06-27 15:34:42 sandervl Exp $ */
     1/* $Id: winexebase.cpp,v 1.18 2001-06-27 19:09:36 sandervl Exp $ */
    22
    33/*
     
    110110  SetWin32TIB();
    111111
    112   //SvL: Leave this here. For some weird reason this affects performance
    113   //     of floating point apps. (at least for one fortan benchmark)
    114   double tmp;
    115112  //Set FPU control word to 0x27F (same as in NT)
    116113  CONTROL87(0x27F, 0xFFF);
    117114  dprintf(("KERNEL32: Win32ExeBase::start exe at %08xh\n",
    118115          (void*)entryPoint ));
    119   rc = ((WIN32EXEENTRY)entryPoint)(NULL);
     116  rc = CallEntryPoint(entryPoint, NULL);
    120117  RestoreOS2TIB();
    121118
Note: See TracChangeset for help on using the changeset viewer.