Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6893 → Rev 6892

/kernel/trunk/core/heap.inc
595,13 → 595,19
 
align 4
proc user_alloc stdcall, alloc_size:dword
push ebx esi edi
call init_heap
 
push ebx
push esi
push edi
 
mov ebx, [current_process]
lea ecx, [ebx+PROC.heap_lock]
call mutex_lock
 
mov ecx, [alloc_size]
add ecx, (4095+PAGE_SIZE)
and ecx, not 4095
 
mov esi, dword [ebx+PROC.heap_base] ; heap_base
mov edi, dword [ebx+PROC.heap_top] ; heap_top
.scan: