And the other thing I spot here is that I believe that __pa() is NOT a
short name for virt_to_phys, but __pa() is supposed to return the offset
into physical memory, not the address OF physical memory (which virt_to_phys
does).
I've already grappled with this on the ARM since we have a similar
problem - some architectures have contiguous memory starting at either
0x00000000 or 0x10000000 (physical) or even worse memory which can be
in up to 4 banks spread out across 256MB. No changes to the generic
code were necessary.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/