Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Jon Burgess" <Jon_Burgess@eur.3com.com>
To: "Matthew Dharm" <mdharm@momenco.com>
Cc: "Linux-MIPS" <linux-mips@linux-mips.org>
Subject: RE: Interrupt handling....
Date: Thu, 5 Sep 2002 17:25:00 +0100	[thread overview]
Message-ID: <80256C2B.005ABC29.00@notesmta.eur.3com.com> (raw)



>    li   t0, 0xfc000000
>    lb   t1, 0xc(t0)
>
>After all,
>isn't that what ioremap is supposed to do?

I think the problem is that you need to use the pointer which ioremap() returns
to access the region you requested. It looks like you've assumed that ioremap()
will map it 1:1 which I don't think is the case.

i.e.

struct hw_regs *foo;

foo = (struct hw_regs *)ioremap(0xfc000000, <Size>);

foo->command = hw_reset;
...


     Jon

             reply	other threads:[~2002-09-05 16:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 16:25 Jon Burgess [this message]
     [not found] <3D6E87EB.4010000@mvista.com>
2002-09-04  1:10 ` Interrupt handling Matthew Dharm
2002-09-04  9:53   ` Dominic Sweetman
2002-09-04 12:58     ` Maciej W. Rozycki
2002-09-04 16:36       ` Matthew Dharm
2002-09-04 20:08         ` Dominic Sweetman
2002-09-05  9:17           ` Maciej W. Rozycki
2002-09-04 16:40     ` Matthew Dharm
2002-09-04 17:02       ` Maciej W. Rozycki
2002-09-04 18:16         ` Matthew Dharm
2002-09-05  9:04           ` Maciej W. Rozycki

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=80256C2B.005ABC29.00@notesmta.eur.3com.com \
    --to=jon_burgess@eur.3com.com \
    --cc=linux-mips@linux-mips.org \
    --cc=mdharm@momenco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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