[ARM] 3965/1: ixp2000: fix handling of pci master aborts

The master abort check in ixp2000_pci_read_config() recently started
failing due to the compiler optimising out the read access following
the clearing of pci_master_aborts.  Mark pci_master_aborts volatile to
force the compiler to reload it on every use.

Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Russell King <[email protected]>
This commit is contained in:
Lennert Buytenhek 2006-12-01 16:02:40 +01:00 • committed by Russell King
commit 2024c39dbb

View file

@ -32,7 +32,7 @@
#include <asm/mach/pci.h>
static int pci_master_aborts = 0;
static volatile int pci_master_aborts = 0;
static int clear_master_aborts(void);