Rev 5363 | Rev 6090 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5363 | Rev 5595 | ||
---|---|---|---|
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: 5363 $ |
8 | $Revision: 5595 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 470... | Line 470... | ||
470 | test eax, eax |
470 | test eax, eax |
471 | jz .fail |
471 | jz .fail |
472 | mov [process], eax |
472 | mov [process], eax |
Line 473... | Line 473... | ||
473 | 473 | ||
474 | lea edi, [eax+PROC.heap_lock] |
474 | lea edi, [eax+PROC.heap_lock] |
Line 475... | Line 475... | ||
475 | mov ecx, (PROC.ht_next-PROC.heap_lock)/4 |
475 | mov ecx, (PROC.ht_free-PROC.heap_lock)/4 |
476 | 476 | ||
477 | list_init eax |
477 | list_init eax |
Line 478... | Line 478... | ||
478 | add eax, PROC.thr_list |
478 | add eax, PROC.thr_list |
479 | list_init eax |
479 | list_init eax |
480 | 480 | ||
Line -... | Line 481... | ||
- | 481 | xor eax, eax |
|
- | 482 | cld |
|
481 | xor eax, eax |
483 | rep stosd |
- | 484 | ||
- | 485 | mov [edi], dword (PROC.pdt_0 - PROC.htab)/4 - 3 |
|
482 | cld |
486 | mov [edi+4], dword 3 ;reserve handles for stdin stdout and stderr |
483 | rep stosd |
487 | mov ecx, (PROC.pdt_0 - PROC.htab)/4 |
484 | 488 | add edi, 8 |
|
485 | mov ecx, (PROC.pdt_0 - PROC.htab)/4 |
489 | inc eax |
486 | @@: |
490 | @@: |
Line 487... | Line -... | ||
487 | stosd |
- | |
488 | inc eax |
491 | stosd |
489 | cmp eax, ecx |
492 | inc eax |
490 | jbe @B |
493 | cmp eax, ecx |
Line 491... | Line 494... | ||
491 | 494 | jbe @B |