From f6498da63cda96dd3bad40323d77b438c427484a Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 9 Oct 2009 10:18:36 +0000 Subject: [PATCH] fixes in PCNet driver (now it works in VMWare) git-svn-id: svn://kolibrios.org@1202 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/drivers/pcnet32.asm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/branches/net/drivers/pcnet32.asm b/kernel/branches/net/drivers/pcnet32.asm index 803ca81d7f..5b2eb541bb 100644 --- a/kernel/branches/net/drivers/pcnet32.asm +++ b/kernel/branches/net/drivers/pcnet32.asm @@ -1596,14 +1596,16 @@ adjust_pci_device: ;*******Get current setting************************ movzx edx, byte [ebx + device.pci_dev] movzx ecx, byte [ebx + device.pci_bus] - stdcall PciRead16, edx ,ecx ,0x04 + push ecx edx + stdcall PciRead16, ecx ,edx ,0x04 + pop edx ecx ; ;******see if its already set as bus master******** ; and ax,5 ; cmp ax,5 ; je .Latency ;******Make card a bus master******* - or ax , 5 - stdcall PciWrite16, edx ,ecx ,0x04, eax + or al, 5 + stdcall PciWrite16, ecx ,edx ,0x04, eax ;******Check latency setting*********** .Latency: ;*******Get current latency setting************************