summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-05-29 22:05:07 +0200
committerRalf Baechle <ralf@linux-mips.org>2008-06-16 15:14:48 +0100
commit938b2b14172bd098972df2a5157bfabf161c90e5 (patch)
treef50c7ee265327f6b29905e2c45ed12ecaa4b4492 /include/asm-mips
parent1f34f2e4262bae8a1aa6d8fd6306b07074d33718 (diff)
downloadop-kernel-dev-938b2b14172bd098972df2a5157bfabf161c90e5.zip
op-kernel-dev-938b2b14172bd098972df2a5157bfabf161c90e5.tar.gz
[MIPS] Malta: Fix build errors for 64-bit kernels
Fix 64-bit Malta by using CKSEG0ADDR and correct casts. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/gic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/gic.h b/include/asm-mips/gic.h
index 3a492f2..954807d 100644
--- a/include/asm-mips/gic.h
+++ b/include/asm-mips/gic.h
@@ -24,8 +24,8 @@
#define MSK(n) ((1 << (n)) - 1)
#define REG32(addr) (*(volatile unsigned int *) (addr))
-#define REG(base, offs) REG32((unsigned int)(base) + offs##_##OFS)
-#define REGP(base, phys) REG32((unsigned int)(base) + (phys))
+#define REG(base, offs) REG32((unsigned long)(base) + offs##_##OFS)
+#define REGP(base, phys) REG32((unsigned long)(base) + (phys))
/* Accessors */
#define GIC_REG(segment, offset) \
OpenPOWER on IntegriCloud