ioremap on powerpc question

Cameron, Steve Steve.Cameron at hp.com
Tue Jul 16 23:25:20 EST 2002


[...]
> >
> > However, on powerpc, as soon as I try to do, for example:
> >
> > 	*buf = '\0'; // write one char to virt addr returned by ioremap
> >
> > It blows up with a machine check.
>
> You are hitting a 440GP specific feature.  ioremap is trapping
> ranges of addresses and "fixing them up" with the proper ERPN.
> Unfortunately, I left the default on a no match as an ERPN=1
> which will ioremap 1 0400 0000.   That's why you get a bus error.
>
> Try this patch:

Thanks!  That appears to work.
and thanks for explaining the rationale on the readb/writeb requirement.

-- steve

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list