Subversion Repositories Kolibri OS

Rev

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

Rev 5565 Rev 5577
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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: 5565 $
8
$Revision: 5577 $
Line 9... Line 9...
9
 
9
 
Line 467... Line 467...
467
        ja      .fail
467
        ja      .fail
Line 468... Line 468...
468
 
468
 
469
        stdcall kernel_alloc, 0x2000
469
        stdcall kernel_alloc, 0x2000
470
        test    eax, eax
470
        test    eax, eax
-
 
471
        jz      .fail
471
        jz      .fail
472
 
Line 472... Line 473...
472
        mov     [process], eax
473
        mov     [process], eax
473
 
474
 
Line 474... Line 475...
474
        lea     edi, [eax+PROC.heap_lock]
475
        lea     edi, [eax+PROC.heap_lock]
475
        mov     ecx, (PROC.ht_next-PROC.heap_lock)/4
476
        mov     ecx, (PROC.ht_free-PROC.heap_lock)/4
476
 
477
 
Line 477... Line 478...
477
        list_init eax
478
        list_init eax
478
        add     eax, PROC.thr_list
479
        add     eax, PROC.thr_list
479
        list_init eax
480
        list_init eax
Line -... Line 481...
-
 
481
 
-
 
482
        xor     eax, eax
480
 
483
        cld
-
 
484
        rep stosd
-
 
485
 
481
        xor     eax, eax
486
        mov     [edi], dword (PROC.pdt_0 - PROC.htab)/4 - 3
482
        cld
487
        mov     [edi+4], dword 3           ;reserve handles for stdin stdout and stderr
483
        rep stosd
488
        mov     ecx, (PROC.pdt_0 - PROC.htab)/4
484
 
489
        add     edi, 8
485
        mov     ecx, (PROC.pdt_0 - PROC.htab)/4
490
        inc     eax
Line 486... Line -...
486
@@:
-
 
487
        stosd
491
@@:
488
        inc     eax
492
        stosd
489
        cmp     eax, ecx
493
        inc     eax
Line 490... Line 494...
490
        jbe     @B
494
        cmp     eax, ecx