linux-mips
[Top] [All Lists]

RE: Interrupt handling....

To: "Matthew Dharm" <mdharm@momenco.com>
Subject: RE: Interrupt handling....
From: "Jon Burgess" <Jon_Burgess@eur.3com.com>
Date: Thu, 5 Sep 2002 17:25:00 +0100
Cc: "Linux-MIPS" <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org

>    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



<Prev in Thread] Current Thread [Next in Thread>