Skip to content

Commit

Permalink
[ARM] 3194/1: add pfn_to_kaddr macro for ARM take2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiroki Kaminaga authored and Russell King committed Dec 5, 2005
1 parent a0d95af commit 31a5539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-arm/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31a5539

Please sign in to comment.