Thread (8 messages) 8 messages, 4 authors, 2004-10-14

Re: PPC kernel hangs

From: Jon Masters <hidden>
Date: 2004-10-14 21:24:11

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help