Rev 2130 | Rev 2434 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2130 | Rev 2259 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 2130 $ |
8 | $Revision: 2259 $ |
9 | 9 | ||
10 | 10 | ||
Line 200... | Line 200... | ||
200 | 200 | ||
201 | ; param |
201 | ; param |
202 | ; eax= mem |
202 | ; eax= mem |
203 | align 4 |
203 | align 4 |
- | 204 | free: |
|
- | 205 | test eax, eax |
|
- | 206 | jz .exit |
|
204 | free: |
207 | |
205 | push edi |
208 | push edi |
206 | mov edi, eax |
209 | mov edi, eax |
Line 207... | Line 210... | ||
207 | add edi, -8 |
210 | add edi, -8 |
Line 294... | Line 297... | ||
294 | call mutex_unlock |
297 | call mutex_unlock |
295 | mov eax, esi |
298 | mov eax, esi |
296 | pop esi |
299 | pop esi |
297 | .fail: |
300 | .fail: |
298 | pop edi |
301 | pop edi |
- | 302 | .exit: |
|
299 | ret |
303 | ret |
- | 304 | ||
300 | @@: |
305 | @@: |
Line 301... | Line 306... | ||
301 | 306 | ||
Line 302... | Line 307... | ||
302 | ; nsize = next->head & ~INUSE_BITS; |
307 | ; nsize = next->head & ~INUSE_BITS; |