LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ppc32: ide, mpc8xx - volatile fix
@ 2005-01-08 18:02 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2005-01-08 18:02 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Magnus Damm

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@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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-08 18:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-08 18:02 [PATCH] ppc32: ide, mpc8xx - volatile fix Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox