merge trunk 2149

git-svn-id: svn://kolibrios.org@2150 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2011-09-04 09:02:01 +00:00
parent 87882ebc37
commit d7ea1d9270
6 changed files with 9 additions and 8 deletions

View File

@ -1225,7 +1225,7 @@ lock inc [edx+DISK.MediaRefCount]
; out: eax = 0 => no more items
; eax != 0 => buffer pointed to by edi contains name of item
dyndisk_enum_root:
push ebx ; save register used in file_system_lfn
push edx ; save register used in file_system_lfn
mov ecx, disk_list_mutex ; it will be useful
; 1. If this is the first call, acquire the mutex and initialize.
test eax, eax
@ -1248,11 +1248,11 @@ dyndisk_enum_root:
jnz @b
pop esi eax
; 5. Return with eax = item.
pop ebx ; restore register used in file_system_lfn
pop edx ; restore register used in file_system_lfn
ret
.last:
; 6. Release the mutex and return with eax = 0.
call mutex_unlock
xor eax, eax
pop ebx ; restore register used in file_system_lfn
pop edx ; restore register used in file_system_lfn
ret

View File

@ -294,7 +294,7 @@ mutex_unlock:
cli
mov eax, [ecx+MUTEX.wait.next]
cmp eax, [ecx]
cmp eax, ecx
mov [ecx+MUTEX.count], 1
je @F

View File

@ -842,14 +842,14 @@ end if
align 4
v86_irq:
; push irq/pushad/jmp v86_irq
; eax = irq
; ebp = irq
lea esi, [esp+1Ch]
lea edi, [esi+4]
mov ecx, 8
std
rep movsd
cld
mov edi, eax
mov edi, ebp
pop eax
v86_irq2:
mov esi, [v86_irqhooks+edi*8] ; get VM handle

View File

@ -432,4 +432,3 @@ proc test_cpu
endp

View File

@ -226,7 +226,7 @@ B32:
mov fs,ax
mov gs,ax
mov ss,ax
mov esp,0x3ec00 ; Set stack
mov esp,0x5ec00 ; Set stack
; CLEAR 0x280000 - HEAP_BASE

View File

@ -766,8 +766,10 @@ proc socket_read_packet stdcall
mov ebx, eax
push ecx edx
lea ecx, [eax + SOCKET.lock]
call mutex_lock
pop edx ecx
mov eax, [ebx + SOCKET.rxDataCount] ; get count of bytes
test eax, eax ; if count of bytes is zero..