提交 2024c39d 编写于 作者: L Lennert Buytenhek 提交者: Russell King

[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: NLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 4e4e520f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册