[Evolves!] Why does one "stw" fail with address translation disabled in PPC405EP?

Zhou Rui vancasperz at yahoo.com.cn
Mon Sep 1 18:19:41 EST 2008


> Paul spotted today that you are actually trying to use __pa() on
> addresses returned from vmalloc, that will not work. Those are virtual
> addresses in a non-linear mapping, _pa() only works on the linear
> mapping.
> 
> Ben.

Oh, do you mean the addresses vmalloc() returns are non-linear mapping?
So if I use vmalloc(), how to translate the virtual addresses to
physical ones?
And does kmalloc() return addresses linear mapping?

Thank you!

Best Wishes

Zhou Rui
2008-09-01

> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

__________________________________________________
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com




More information about the Linuxppc-dev mailing list