[PATCH] ppc32: ide, mpc8xx - volatile fix

Magnus Damm damm at opensource.se
Sun Jan 9 05:02:09 EST 2005


This patch makes sure that a PCMCIA register is accessed with a volatile
pointer. Wierd things happen without the patch if compiled with gcc-3.

Signed-off-by: Magnus Damm <damm at opensource.se>

--- linux-2.6.10/drivers/ide/ppc/mpc8xx.c	2004-12-24 22:35:39.000000000 +0100
+++ linux-2.6.10-ppc32_ide_mpc8xx_volatile/drivers/ide/ppc/mpc8xx.c	2005-01-08 18:42:06.000000000 +0100
@@ -172,7 +172,7 @@
 	volatile pcmcia_win_t *win;
 	volatile pcmconf8xx_t *pcmp;
 
-	uint *pgcrx;
+	volatile uint *pgcrx;
 	u32 pcmcia_phy_base;
 	u32 pcmcia_phy_end;
 	static unsigned long pcmcia_base = 0;



More information about the Linuxppc-dev mailing list