mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 16:37:30 +03:00
Removed useless cli before calling mutex
git-svn-id: svn://kolibrios.org@2932 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
de28332c4d
commit
26eb4cbcc9
@ -130,11 +130,8 @@ TCP_input:
|
|||||||
; Lock the socket
|
; Lock the socket
|
||||||
|
|
||||||
pusha
|
pusha
|
||||||
pushf
|
|
||||||
cli
|
|
||||||
lea ecx, [ebx + SOCKET.mutex]
|
lea ecx, [ebx + SOCKET.mutex]
|
||||||
call mutex_lock
|
call mutex_lock
|
||||||
popf
|
|
||||||
popa
|
popa
|
||||||
|
|
||||||
DEBUGF 1,"TCP_input: socket locked\n"
|
DEBUGF 1,"TCP_input: socket locked\n"
|
||||||
|
@ -30,9 +30,6 @@ TCP_output:
|
|||||||
|
|
||||||
DEBUGF 1,"TCP_output: socket=%x\n", eax
|
DEBUGF 1,"TCP_output: socket=%x\n", eax
|
||||||
|
|
||||||
pushf
|
|
||||||
cli
|
|
||||||
|
|
||||||
pusha
|
pusha
|
||||||
lea ecx, [eax + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_lock
|
call mutex_lock
|
||||||
@ -278,7 +275,6 @@ TCP_output:
|
|||||||
lea ecx, [eax + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_unlock
|
call mutex_unlock
|
||||||
popa
|
popa
|
||||||
popf
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -538,7 +534,7 @@ TCP_send:
|
|||||||
; unlock socket
|
; unlock socket
|
||||||
lea ecx, [eax + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_unlock
|
call mutex_unlock
|
||||||
popf
|
|
||||||
DEBUGF 1,"TCP_send: success!\n"
|
DEBUGF 1,"TCP_send: success!\n"
|
||||||
|
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
@ -555,7 +551,7 @@ TCP_send:
|
|||||||
; unlock socket
|
; unlock socket
|
||||||
lea ecx, [eax + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_unlock
|
call mutex_unlock
|
||||||
popf
|
|
||||||
DEBUGF 1,"TCP_send: IP error\n"
|
DEBUGF 1,"TCP_send: IP error\n"
|
||||||
|
|
||||||
or eax, -1
|
or eax, -1
|
||||||
@ -566,7 +562,7 @@ TCP_send:
|
|||||||
; unlock socket
|
; unlock socket
|
||||||
lea ecx, [eax + SOCKET.mutex]
|
lea ecx, [eax + SOCKET.mutex]
|
||||||
call mutex_unlock
|
call mutex_unlock
|
||||||
popf
|
|
||||||
DEBUGF 1,"TCP_send: sending failed\n"
|
DEBUGF 1,"TCP_send: sending failed\n"
|
||||||
|
|
||||||
or eax, -2
|
or eax, -2
|
||||||
|
Loading…
Reference in New Issue
Block a user