diff --git a/kernel/branches/net/drivers/RTL8139.asm b/kernel/branches/net/drivers/RTL8139.asm index 3e8a13036e..6791b948bb 100644 --- a/kernel/branches/net/drivers/RTL8139.asm +++ b/kernel/branches/net/drivers/RTL8139.asm @@ -302,7 +302,7 @@ align 4 proc service_proc stdcall, ioctl:dword mov edx, [ioctl] - mov eax, [ebx+IOCTL.io_code] + mov eax, [edx+IOCTL.io_code] ;------------------------------------------------------ diff --git a/kernel/branches/net/drivers/pcnet32.asm b/kernel/branches/net/drivers/pcnet32.asm index e881af01c5..840a568e10 100644 --- a/kernel/branches/net/drivers/pcnet32.asm +++ b/kernel/branches/net/drivers/pcnet32.asm @@ -470,7 +470,7 @@ align 4 proc service_proc stdcall, ioctl:dword mov edx, [ioctl] - mov eax, [ebx+IOCTL.io_code] + mov eax, [edx+IOCTL.io_code] ;------------------------------------------------------ diff --git a/kernel/branches/net/drivers/sis900.asm b/kernel/branches/net/drivers/sis900.asm index 5e1af8cea5..b2b4beaa9b 100644 --- a/kernel/branches/net/drivers/sis900.asm +++ b/kernel/branches/net/drivers/sis900.asm @@ -133,7 +133,7 @@ service_proc: ; pointer to IOCTL structure. mov edx, [esp+4] ; edx -> IOCTL ; 2. Get request code and select a handler for the code. - mov eax, [ebx+IOCTL.io_code] + mov eax, [edx+IOCTL.io_code] test eax, eax ; check for SRV_GETVERSION jnz @f ; 3. This is SRV_GETVERSION request, no input, 4 bytes output, API_VERSION.