Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5576 → Rev 5577

/kernel/branches/Kolibri-acpi/core/taskman.inc
469,10 → 469,11
stdcall kernel_alloc, 0x2000
test eax, eax
jz .fail
 
mov [process], eax
 
lea edi, [eax+PROC.heap_lock]
mov ecx, (PROC.ht_next-PROC.heap_lock)/4
mov ecx, (PROC.ht_free-PROC.heap_lock)/4
 
list_init eax
add eax, PROC.thr_list
482,7 → 483,11
cld
rep stosd
 
mov [edi], dword (PROC.pdt_0 - PROC.htab)/4 - 3
mov [edi+4], dword 3 ;reserve handles for stdin stdout and stderr
mov ecx, (PROC.pdt_0 - PROC.htab)/4
add edi, 8
inc eax
@@:
stosd
inc eax
489,7 → 494,6
cmp eax, ecx
jbe @B
 
mov [edi-4096+PROC.ht_next], 3 ;reserve handles for stdin stdout and stderr
mov eax, edi
call get_pg_addr
mov [edi-4096+PROC.pdt_0_phys], eax