From 26eb4cbcc90f87de93ec7904edf3d4788ca1bd8a Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 20 Aug 2012 16:04:05 +0000 Subject: [PATCH] Removed useless cli before calling mutex git-svn-id: svn://kolibrios.org@2932 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/network/tcp_input.inc | 3 --- kernel/branches/net/network/tcp_output.inc | 10 +++------- 2 files changed, 3 insertions(+), 10 deletions(-) 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