CPHYSADDR gives you physical address from an address that lies in
one of compatibility "unmapped" spaces. "compatibility" in this case refers
to 32bit MIPS view of memory space.
As such, CPHYSADDR macro generally should not be used.
Jun Sun wrote:
I noticed CPHYSADDR macro. This macro only works if
PAGE_OFFSET is equal to 0x80000000. Why does this
macro exist ? Why not using __pa macro ?
Don't know much about this one.
BTW, once there was a board whose memory starts from 0x90000000. It had
similar problems as yours, but I think it ran in the end. Try to search
the mailing list.
Jun