From 14192f7dba11ebcbab77ce969a38ba8c06f70833 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 25 Jan 2013 17:07:13 +0000 Subject: [PATCH] Fixed some PCI function macros for network cards. (Now PCnet32 driver works again in VmWare) git-svn-id: svn://kolibrios.org@3199 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/drivers/bus/pci.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/branches/net/drivers/bus/pci.inc b/kernel/branches/net/drivers/bus/pci.inc index 52e9d3fae8..64a557a982 100644 --- a/kernel/branches/net/drivers/bus/pci.inc +++ b/kernel/branches/net/drivers/bus/pci.inc @@ -126,7 +126,9 @@ macro make_bus_master bus, dev { movzx ecx, bus movzx edx, dev + push ecx edx stdcall PciRead32, ecx ,edx, PCI_REG_COMMAND + pop edx ecx or al, PCI_BIT_MASTER stdcall PciWrite32, ecx, edx, PCI_REG_COMMAND, eax @@ -136,7 +138,9 @@ macro adjust_latency bus, dev, min { movzx ecx, bus movzx edx, dev + push ecx edx stdcall PciRead8, ecx ,edx, PCI_REG_LATENCY + pop edx ecx cmp al, min ja @f mov al, min