[Top] [All Lists]

RE: Interrupt handling....

To: "Matthew Dharm" <>
Subject: RE: Interrupt handling....
From: "Jon Burgess" <>
Date: Thu, 5 Sep 2002 17:25:00 +0100
Cc: "Linux-MIPS" <>
Original-recipient: rfc822;

>    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.


struct hw_regs *foo;

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

foo->command = hw_reset;


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