rk29sdk: fix gcc warning: integer overflow in expression
author黄涛 <huangtao@rock-chips.com>
Sat, 4 Dec 2010 06:21:46 +0000 (14:21 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 4 Dec 2010 06:34:46 +0000 (14:34 +0800)
arch/arm/mach-rk29/board-rk29sdk.c

index 6390ec601a46646b8ddf31c40fb4ea0dcaa908a1..8341b29bb37bd205d47987ec567bfc630bfc1de4 100755 (executable)
@@ -56,7 +56,7 @@
 #define PMEM_UI_SIZE        SZ_16M\r
 #define PMEM_VPU_SIZE       SZ_32M\r
 \r
-#define PMEM_GPU_BASE       (RK29_SDRAM_PHYS + SDRAM_SIZE - PMEM_GPU_SIZE)\r
+#define PMEM_GPU_BASE       ((u32)RK29_SDRAM_PHYS + SDRAM_SIZE - PMEM_GPU_SIZE)\r
 #define PMEM_UI_BASE        (PMEM_GPU_BASE - PMEM_UI_SIZE)\r
 #define PMEM_VPU_BASE       (PMEM_UI_BASE - PMEM_VPU_SIZE)\r
 #define LINUX_SIZE          (PMEM_VPU_BASE - RK29_SDRAM_PHYS)\r