diff --git a/kernel/branches/net/network/tcp_input.inc b/kernel/branches/net/network/tcp_input.inc index 24bcdba836..28a8817dac 100644 --- a/kernel/branches/net/network/tcp_input.inc +++ b/kernel/branches/net/network/tcp_input.inc @@ -130,11 +130,8 @@ TCP_input: ; Lock the socket pusha - pushf - cli lea ecx, [ebx + SOCKET.mutex] call mutex_lock - popf popa DEBUGF 1,"TCP_input: socket locked\n" diff --git a/kernel/branches/net/network/tcp_output.inc b/kernel/branches/net/network/tcp_output.inc index 8ca907560f..21d8e38827 100644 --- a/kernel/branches/net/network/tcp_output.inc +++ b/kernel/branches/net/network/tcp_output.inc @@ -30,9 +30,6 @@ TCP_output: DEBUGF 1,"TCP_output: socket=%x\n", eax - pushf - cli - pusha lea ecx, [eax + SOCKET.mutex] call mutex_lock @@ -278,7 +275,6 @@ TCP_output: lea ecx, [eax + SOCKET.mutex] call mutex_unlock popa - popf ret @@ -538,7 +534,7 @@ TCP_send: ; unlock socket lea ecx, [eax + SOCKET.mutex] call mutex_unlock - popf + DEBUGF 1,"TCP_send: success!\n" xor eax, eax @@ -555,7 +551,7 @@ TCP_send: ; unlock socket lea ecx, [eax + SOCKET.mutex] call mutex_unlock - popf + DEBUGF 1,"TCP_send: IP error\n" or eax, -1 @@ -566,7 +562,7 @@ TCP_send: ; unlock socket lea ecx, [eax + SOCKET.mutex] call mutex_unlock - popf + DEBUGF 1,"TCP_send: sending failed\n" or eax, -2