Subversion Repositories Kolibri OS

Rev

Rev 2455 | Rev 3681 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2455 Rev 3126
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2011. 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: 2455 $
8
$Revision: 3126 $
9
 
9
 
10
 
10
 
Line 339... Line 339...
339
        mov     [esi+edi], esi
339
        mov     [esi+edi], esi
Line 340... Line 340...
340
 
340
 
Line 341... Line 341...
341
; insert_chunk(p,psize);
341
; insert_chunk(p,psize);
342
 
-
 
343
        mov     eax, esi
342
 
344
        pop     esi
343
        mov     eax, esi
345
        mov     ecx, edi
344
        mov     ecx, edi
346
        pop     edi
345
        call    insert_chunk
Line 347... Line 346...
347
        jmp     insert_chunk
346
        jmp     .fail2
Line 348... Line 347...
348
.unl_large:
347
.unl_large:
Line 362... Line 361...
362
        mov     [esi+edi], esi
361
        mov     [esi+edi], esi
Line 363... Line 362...
363
 
362
 
Line 364... Line 363...
364
; insert_chunk(p,psize);
363
; insert_chunk(p,psize);
365
 
-
 
366
        mov     eax, esi
364
 
367
        pop     esi
365
        mov     eax, esi
368
        mov     ecx, edi
366
        mov     ecx, edi
369
        pop     edi
367
        call    insert_chunk
Line 370... Line 368...
370
        jmp     insert_chunk
368
        jmp     .fail2
371
.fix_next:
369
.fix_next:
372
 
370
 
Line 384... Line 382...
384
 
382
 
385
        mov     [esi+edi], esi
383
        mov     [esi+edi], esi
Line 386... Line 384...
386
; insert_chunk(p,psize);
384
; insert_chunk(p,psize);
387
 
-
 
388
        mov     eax, esi
385
 
389
        pop     esi
386
        mov     eax, esi
390
        mov     ecx, edi
387
        mov     ecx, edi
Line 391... Line 388...
391
        pop     edi
388
        call    insert_chunk
392
        jmp     insert_chunk
389
        jmp     .fail2
393
 
390
 
Line 416... Line 413...
416
        mov     [eax+8], esi           ;B->fd = P
413
        mov     [eax+8], esi           ;B->fd = P
417
        mov     [edx+12], esi          ;F->bk = P
414
        mov     [edx+12], esi          ;F->bk = P
418
        mov     [esi+8], edx           ;P->fd = F
415
        mov     [esi+8], edx           ;P->fd = F
419
        mov     [esi+12], eax          ;P->bk = B
416
        mov     [esi+12], eax          ;P->bk = B
420
        pop     esi
417
        pop     esi
421
        mov     ecx, mst.mutex
-
 
422
        call    mutex_unlock
-
 
423
        ret
418
        ret
424
.large:
419
.large:
425
        mov     ebx, eax
420
        mov     ebx, eax
426
        call    insert_large_chunk
421
        call    insert_large_chunk
427
        pop     esi
422
        pop     esi
428
        mov     ecx, mst.mutex
-
 
429
        call    mutex_unlock
-
 
430
        ret
423
        ret
Line 431... Line 424...
431
 
424
 
432
 
425