From 5842e9f3741143e2f3052610d6fc7208c24a8ac7 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 26 Nov 2013 17:00:13 +0000 Subject: [PATCH] TCP_input: dont use conditional move instruction. (not available on some machines) git-svn-id: svn://kolibrios.org@4296 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/tcp_input.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/network/tcp_input.inc b/kernel/trunk/network/tcp_input.inc index 1fc85c2339..673db4064a 100644 --- a/kernel/trunk/network/tcp_input.inc +++ b/kernel/trunk/network/tcp_input.inc @@ -882,7 +882,9 @@ TCP_process_input: mov eax, [ebx + TCP_SOCKET.SND_WND] cmp eax, [ebx + TCP_SOCKET.SND_CWND] - cmova eax, [ebx + TCP_SOCKET.SND_CWND] + jbe @f + mov eax, [ebx + TCP_SOCKET.SND_CWND] + @@: shr eax, 1 push edx xor edx, edx @@ -1067,7 +1069,9 @@ TCP_process_input: pop ecx cmp esi, eax - cmova esi, eax + jbe @f + mov esi, eax + @@: mov [ebx + TCP_SOCKET.SND_CWND], esi ;------------------------------------------