sh: Assembly friendly __pa and __va definitions
authorMatt Fleming <matt@console-pimps.org>
Sat, 24 Apr 2010 10:12:12 +0000 (11:12 +0100)
committerMatt Fleming <matt@console-pimps.org>
Sun, 25 Apr 2010 19:44:22 +0000 (20:44 +0100)
commit7c4584d39a8a144c60adaf4cf998c3233b6683d9
treecae1bdc6dd8e29633399a850e19c1b853dd0a43d
parent4a6feab0ee5240c4bd5378d9f8a46b85718c68a7
sh: Assembly friendly __pa and __va definitions

This patch defines ___pa and ___va which return the physical and virtual
address of an address, respectively. These macros are suitable for
calling from assembly because they don't include the C casts required by
__pa and __va.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
arch/sh/include/asm/page.h