doesn't ioremap() retrun contigious addressess...?

Prabhu nath gprabhunath at gmail.com
Thu Feb 28 07:03:02 EST 2013


Yep.




On Thu, Feb 28, 2013 at 5:10 PM, Yann Droneaud <ydroneaud at opteya.com> wrote:

> Le jeudi 28 février 2013 à 16:25 +0530, sandeep kumar a écrit :
> > Sorry, Neglect the question.
> > i am using a readl() which reads 4 bytes at a time. In the last
> > iteration, it is trying to read next 4 unmapped locations.
> >
>
> So you probably have to do this instead:
>
> for(i=0;i<(SZ_16KB-1)/4;i++)
>      src = readl(tcpm_base+(i * 4));
>
> Regards
>
> --
> Yann Droneaud
> OPTEYA
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130228/529a600d/attachment.html 


More information about the Kernelnewbies mailing list