Changeset 9441 for trunk/src


Ignore:
Timestamp:
Nov 28, 2002, 8:49:02 PM (23 years ago)
Author:
sandervl
Message:

Make sure the stack is properly aligned

File:
1 edited

Legend:

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

    r8401 r9441  
    1 ; $Id: exceptutil.asm,v 1.19 2002-05-10 14:55:11 sandervl Exp $
     1; $Id: exceptutil.asm,v 1.20 2002-11-28 19:49:02 sandervl Exp $
    22
    33;/*
     
    173173        push    ebp
    174174        mov     ebp, esp
     175
     176IFDEF DEBUG
     177;We're asking for problems if our stack start near a 64kb boundary
     178;Some OS/2 thunking procedures can choke on misaligned stack addresses
     179        mov     eax, esp
     180        and     eax, 0FFFFh
     181        cmp     eax, 0E000h
     182        jge     @goodstack
     183
     184        add     eax, 1000h
     185        sub     esp, eax
     186@goodstack:
     187ENDIF
    175188
    176189        mov     eax, esp
Note: See TracChangeset for help on using the changeset viewer.