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

Yann Droneaud ydroneaud at opteya.com
Thu Feb 28 06:40:05 EST 2013


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






More information about the Kernelnewbies mailing list