Linux MIPS Architecture development
 help / color / mirror / Atom feed
* RE: Interrupt handling....
@ 2002-09-05 16:25 Jon Burgess
  0 siblings, 0 replies; 11+ messages in thread
From: Jon Burgess @ 2002-09-05 16:25 UTC (permalink / raw)
  To: Matthew Dharm; +Cc: Linux-MIPS



>    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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-09-05 16:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2002-09-05 16:25 Jon Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox