PPC kernel hangs

Jon Masters jonathan at jonmasters.org
Fri Oct 15 07:23:44 EST 2004


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.



More information about the Linuxppc-embedded mailing list