patch-2.2.0-pre6 linux/include/asm-arm/arch-ebsa285/mmu.h

Next file: linux/include/asm-arm/arch-ebsa285/processor.h
Previous file: linux/include/asm-arm/arch-ebsa285/irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre5/linux/include/asm-arm/arch-ebsa285/mmu.h linux/include/asm-arm/arch-ebsa285/mmu.h
@@ -16,13 +16,13 @@
  * On ebsa285, the dram is contiguous
  */
 #define __virt_to_phys__is_a_macro
-#define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET)
+#define __virt_to_phys(vpage) ((unsigned long)(vpage) - PAGE_OFFSET)
 #define __phys_to_virt__is_a_macro
-#define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET)
+#define __phys_to_virt(ppage) ((unsigned long)(ppage) + PAGE_OFFSET)
 
 #define __virt_to_bus__is_a_macro
-#define __virt_to_bus(x)	(x - 0xe0000000)
+#define __virt_to_bus(x)	((x) - 0xe0000000)
 #define __bus_to_virt__is_a_macro
-#define __bus_to_virt(x)	(x + 0xe0000000)
+#define __bus_to_virt(x)	((x) + 0xe0000000)
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov