projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d95af
)
[ARM] 3194/1: add pfn_to_kaddr macro for ARM take2
author
Hiroki Kaminaga
<kaminaga@sm.sony.co.jp>
Mon, 5 Dec 2005 10:55:00 +0000
(10:55 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Mon, 5 Dec 2005 10:55:00 +0000
(10:55 +0000)
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>
include/asm-arm/memory.h
patch
|
blob
|
history
diff --git
a/include/asm-arm/memory.h
b/include/asm-arm/memory.h
index
a547ee5
..
3e57236
100644
(file)
--- 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