diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-05 20:56:57 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 20:56:57 +0400 |
commit | 616ad8c44281c0c6711a72b560e01ec335ff27e0 (patch) | |
tree | 0a20453ffedb09db6fb41a0c2208ccc2c7751d3a /arch/h8300/include/asm/virtconvert.h | |
parent | 99809963c99e1ed868d9ebeb4a5e7ee1cbe0309f (diff) | |
parent | b380b0d4f7dffcc235c0facefa537d4655619101 (diff) | |
download | linux-616ad8c44281c0c6711a72b560e01ec335ff27e0.tar.xz |
Merge branch 'linus' into x86/defconfig
Diffstat (limited to 'arch/h8300/include/asm/virtconvert.h')
-rw-r--r-- | arch/h8300/include/asm/virtconvert.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/virtconvert.h b/arch/h8300/include/asm/virtconvert.h new file mode 100644 index 000000000000..19cfd62b11c3 --- /dev/null +++ b/arch/h8300/include/asm/virtconvert.h @@ -0,0 +1,20 @@ +#ifndef __H8300_VIRT_CONVERT__ +#define __H8300_VIRT_CONVERT__ + +/* + * Macros used for converting between virtual and physical mappings. + */ + +#ifdef __KERNEL__ + +#include <asm/setup.h> +#include <asm/page.h> + +#define phys_to_virt(vaddr) ((void *) (vaddr)) +#define virt_to_phys(vaddr) ((unsigned long) (vaddr)) + +#define virt_to_bus virt_to_phys +#define bus_to_virt phys_to_virt + +#endif +#endif |