Bugfixes for #2937 (receive window calculation).

Disabled interrupts while in TCP_input or TCP_output to prevent deadlock.

git-svn-id: svn://kolibrios.org@2942 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr
2012-08-27 22:47:10 +00:00
parent ac776f502e
commit 51263819d7
2 changed files with 32 additions and 14 deletions

View File

@@ -28,6 +28,9 @@ $Revision$
align 4
TCP_output:
pushf
cli
DEBUGF 1,"TCP_output: socket=%x\n", eax
pusha
@@ -276,6 +279,7 @@ TCP_output:
call mutex_unlock
popa
popf
ret
@@ -567,6 +571,7 @@ TCP_send:
DEBUGF 1,"TCP_send: success!\n"
xor eax, eax
popf
ret
@@ -585,6 +590,7 @@ TCP_send:
DEBUGF 1,"TCP_send: IP error\n"
or eax, -1
popf
ret
.send_error:
@@ -593,6 +599,7 @@ TCP_send:
DEBUGF 1,"TCP_send: sending failed\n"
or eax, -2
popf
ret