From 31963d41b27266b8cc2ccddbe9f905c394da9357 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 21 May 2020 13:35:44 +0000 Subject: [PATCH] sys_protocols: don't destroy esi input reg git-svn-id: svn://kolibrios.org@7963 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/stack.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/network/stack.inc b/kernel/trunk/network/stack.inc index 7964504342..b92ab063aa 100644 --- a/kernel/trunk/network/stack.inc +++ b/kernel/trunk/network/stack.inc @@ -837,10 +837,10 @@ sys_protocols: cmp bh, NET_DEVICES_MAX ; Check if device number exists jae .doesnt_exist - mov esi, ebx - and esi, 0x0000ff00 - shr esi, 6 ; now we have the device num * 4 in esi - cmp [esi + net_device_list], 0 ; check if device is running + mov eax, ebx + and eax, 0x0000ff00 + shr eax, 6 ; now we have the device num * 4 in eax + cmp [eax + net_device_list], 0 ; check if device is running je .doesnt_exist push .return ; return address (we will be using jumps instead of calls)