summaryrefslogtreecommitdiff
path: root/include/asm-arm/memory.h
diff options
context:
space:
mode:
authorHiroki Kaminaga <kaminaga@sm.sony.co.jp>2005-12-05 10:55:00 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-12-05 10:55:00 +0000
commit31a5539e57fa80e877a2f180cd4ec9ce9de6fea0 (patch)
tree36b3821339c9925b0922a8a3df14c436bfc6747f /include/asm-arm/memory.h
parenta0d95af5c28666155ad4c85a63a5065436ae1d79 (diff)
downloadlinux-rpi-31a5539e57fa80e877a2f180cd4ec9ce9de6fea0.tar.gz
linux-rpi-31a5539e57fa80e877a2f180cd4ec9ce9de6fea0.tar.bz2
linux-rpi-31a5539e57fa80e877a2f180cd4ec9ce9de6fea0.zip
[ARM] 3194/1: add pfn_to_kaddr macro for ARM take2
Patch from Hiroki Kaminaga This patch defines a new macro: pfn_to_kaddr(pfn). Same macro is already defined on other arch, such as i386. Signed-off-by: Hiroki Kaminaga <kaminaga@sm.sony.co.jp> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/memory.h')
-rw-r--r--include/asm-arm/memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/memory.h b/include/asm-arm/memory.h
index a547ee598c6c..3e572364ee73 100644
--- a/include/asm-arm/memory.h
+++ b/include/asm-arm/memory.h
@@ -122,6 +122,7 @@ static inline void *phys_to_virt(unsigned long x)
*/
#define __pa(x) __virt_to_phys((unsigned long)(x))
#define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
+#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
/*
* Virtual <-> DMA view memory address translations