From 993906cf9a7aa4ca2c6ca51718540fd625b3c7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 5 Nov 2013 21:29:30 +0000 Subject: [PATCH] got rid of global statics --- sources/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/pci.c b/sources/pci.c index fa3132d..983ab16 100644 --- a/sources/pci.c +++ b/sources/pci.c @@ -267,8 +267,6 @@ int16_t pci_unhook_interrupt(uint16_t handle) } -static uint32_t mem_address = PCI_MEMORY_OFFSET; -static uint32_t io_address = PCI_IO_OFFSET; /* * pci_device_config() @@ -282,6 +280,8 @@ static void pci_device_config(uint16_t bus, uint16_t device, uint16_t function) int16_t index = - 1; struct pci_rd *descriptors; int i; + uint32_t mem_address = PCI_MEMORY_OFFSET; + uint32_t io_address = PCI_IO_OFFSET; /* determine pci handle from bus, device + function number */ handle = PCI_HANDLE(bus, device, function);