Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 276 → Rev 275

/kernel/trunk/core/taskman.inc
310,8 → 310,7
app_tabs dd ?
endl
 
mov ebx, pg_data.pg_mutex
call wait_mutex ;ebx
stdcall wait_mutex, pg_data.pg_mutex
 
xor eax, eax
mov [dir_addr], eax
492,8 → 491,7
align 4
proc destroy_app_space stdcall, pg_dir:dword
 
mov ebx, pg_data.pg_mutex
call wait_mutex ;ebx
stdcall wait_mutex, pg_data.pg_mutex
 
xor edx,edx
mov eax,0x2
573,8 → 571,7
mov eax, [ebp]
mov [filename], eax
 
mov ebx, pg_data.tmp_task_mutex
call wait_mutex ;ebx
stdcall wait_mutex, pg_data.tmp_task_mutex
 
mov edi, [tmp_task_data]
mov ecx, (1024+256)/4
944,25 → 941,24
ret
endp
 
; param
; ebx=mutex
 
align 4
wait_mutex:
push eax
push ebx
proc wait_mutex stdcall, mutex:dword
mov ebx, [mutex]
.wait_lock:
cmp dword [ebx],0
je .get_lock
push ebx
call change_task
jmp wait_mutex
pop ebx
jmp .wait_lock
 
.get_lock:
mov eax, 1
xchg eax, [ebx]
test eax, eax
jnz wait_mutex
pop ebx
pop eax
jnz .wait_lock
ret
endp
 
align 4
proc set_app_params stdcall,slot:dword, params:dword,\