- Timestamp:
- Dec 7, 1999, 7:19:07 PM (26 years ago)
- 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 achimhaExp $1 ; $Id: interlock.asm,v 1.5 1999-12-07 18:19:07 sandervl Exp $ 2 2 3 3 ;/* … … 34 34 35 35 ;@@@PH similar to NT4 36 movecx, [esp+4]37 moveax, 138 39 lockxadd dword ptr [ecx], eax40 inceax41 36 mov ecx, [esp+4] 37 mov eax, 1 38 nop 39 lock xadd dword ptr [ecx], eax 40 inc eax 41 retn 4 42 42 43 43 ; @@@PH 1999/12/06 old implementation similar to W95 … … 85 85 86 86 ;@@@PH similar to NT4 87 88 89 90 lock xadd dword ptr [ecx], eax91 92 87 mov ecx, [esp+4] 88 mov eax, 0ffffffffh 89 nop 90 lock xadd dword ptr [ecx], eax 91 dec eax 92 retn 4 93 93 94 94 … … 137 137 138 138 ;@@@PH similar to NT4 139 mov ecx, [esp+8]140 mov edx, [esp+4]141 moveax, dword ptr [ecx]139 mov ecx, [esp+4] ; LPLONG target 140 mov edx, [esp+8] ; LONG value 141 mov eax, dword ptr [ecx] 142 142 _ie_1: 143 144 lockcmpxchg dword ptr [ecx], edx145 jnz_ie_1146 143 nop 144 lock cmpxchg dword ptr [ecx], edx 145 jnz _ie_1 146 retn 8 147 147 148 148 ; @@@PH 1999/12/06 old implementation similar to W95 … … 193 193 _ice_1: 194 194 nop 195 lock cmpxchg dword ptr [ecx], edx195 lock cmpxchg dword ptr [ecx], edx 196 196 retn 12 197 197 … … 234 234 mov eax, dword ptr [esp + 8] 235 235 nop 236 lock xadd dword ptr [ecx], eax236 lock xadd dword ptr [ecx], eax 237 237 retn 8 238 238
Note:
See TracChangeset
for help on using the changeset viewer.