Skip to content

Commit

Permalink
[ARM] 3965/1: ixp2000: fix handling of pci master aborts
Browse files Browse the repository at this point in the history
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 <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Dec 1, 2006
1 parent 4e4e520 commit 2024c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp2000/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2024c39

Please sign in to comment.