Changeset 2009 for trunk/src


Ignore:
Timestamp:
Dec 7, 1999, 7:19:07 PM (26 years ago)
Author:
sandervl
Message:

InterlockExchange bugfix

File:
1 edited

Legend:

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

    r1994 r2009  
    1 ; $Id: interlock.asm,v 1.4 1999-12-06 19:48:11 achimha Exp $
     1; $Id: interlock.asm,v 1.5 1999-12-07 18:19:07 sandervl Exp $
    22
    33;/*
     
    3434
    3535;@@@PH similar to NT4
    36          mov      ecx, [esp+4]
    37          mov      eax, 1
    38          nop
    39     lock xadd     dword ptr [ecx], eax
    40          inc      eax
    41          retn 4
     36        mov     ecx, [esp+4]
     37        mov     eax, 1
     38        nop
     39        lock    xadd     dword ptr [ecx], eax
     40        inc     eax
     41        retn 4
    4242
    4343; @@@PH 1999/12/06 old implementation similar to W95
     
    8585
    8686;@@@PH similar to NT4
    87          mov      ecx, [esp+4]
    88          mov      eax, 0ffffffffh
    89          nop
    90     lock xadd     dword ptr [ecx], eax
    91          dec      eax
    92          retn 4
     87        mov      ecx, [esp+4]
     88        mov      eax, 0ffffffffh
     89        nop
     90        lock xadd     dword ptr [ecx], eax
     91        dec      eax
     92        retn 4
    9393
    9494
     
    137137
    138138;@@@PH similar to NT4
    139          mov      ecx, [esp+8]
    140          mov      edx, [esp+4]
    141          mov      eax, dword ptr [ecx]
     139        mov     ecx, [esp+4]            ; LPLONG target
     140        mov     edx, [esp+8]            ; LONG value
     141        mov     eax, dword ptr [ecx]
    142142_ie_1:
    143          nop
    144     lock cmpxchg  dword ptr [ecx], edx
    145          jnz      _ie_1
    146          retn 8
     143        nop
     144        lock    cmpxchg  dword ptr [ecx], edx
     145        jnz     _ie_1
     146        retn 8
    147147
    148148; @@@PH 1999/12/06 old implementation similar to W95
     
    193193_ice_1:
    194194        nop
    195    lock cmpxchg dword ptr [ecx], edx
     195        lock cmpxchg dword ptr [ecx], edx
    196196        retn 12
    197197
     
    234234        mov     eax, dword ptr [esp + 8]
    235235        nop
    236    lock xadd    dword ptr [ecx], eax
     236        lock xadd    dword ptr [ecx], eax
    237237        retn    8
    238238
Note: See TracChangeset for help on using the changeset viewer.