Subject: Re: PPC kernel hangs

From: Jon Masters <[email-masked]>
Date: Thu, 14 Oct 2004 22:23:44 +0100

On Thu, Oct 14, 2004 at 09:44:30AM -0700, Rupesh S wrote:

> ################################################################
> volatile __u32* __fpga;
> 
> __fpga = (__u32*) ioremap_nocache(0x60000000, (4*1024));
> 
> /* writel(data, ((__u32)__fpga + 0x0C)); */ /* This does not work */
> 
> *(volatile __u32*)((__u32)__fpga + 0x0C) = data; /* This works */
> #############################################################

Hi Rupesh,

Notice that you're casting as a pointer in one case, and in the other you're not.

Jon.