public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Jon Masters <jonathan@jonmasters•org>
To: Rupesh S <rupesh.sugathan@gmail•com>
Cc: jonathan@jonmasters•org, linuxppc-embedded@ozlabs•org
Subject: Re: PPC kernel hangs
Date: Thu, 14 Oct 2004 22:23:44 +0100	[thread overview]
Message-ID: <20041014212344.GA789@apogee.jonmasters.org> (raw)
In-Reply-To: <1e44ebcf0410140944620f1dab@mail.gmail.com>

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.

      reply	other threads:[~2004-10-14 21:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12 21:24 PPC kernel hangs Rupesh S
2004-10-12 21:36 ` Eugene Surovegin
2004-10-12 23:03   ` Jon Masters
2004-10-12 23:05     ` Jon Masters
2004-10-12 23:34     ` Eugene Surovegin
2004-10-13 18:00       ` Jon Masters
2004-10-14 16:44     ` Rupesh S
2004-10-14 21:23       ` Jon Masters [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041014212344.GA789@apogee.jonmasters.org \
    --to=jonathan@jonmasters$(echo .)org \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    --cc=rupesh.sugathan@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox