diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2008-05-29 22:05:07 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-06-16 15:14:48 +0100 |
commit | 938b2b14172bd098972df2a5157bfabf161c90e5 (patch) | |
tree | f50c7ee265327f6b29905e2c45ed12ecaa4b4492 /include/asm-mips | |
parent | 1f34f2e4262bae8a1aa6d8fd6306b07074d33718 (diff) | |
download | linux-stable-938b2b14172bd098972df2a5157bfabf161c90e5.tar.gz linux-stable-938b2b14172bd098972df2a5157bfabf161c90e5.tar.bz2 linux-stable-938b2b14172bd098972df2a5157bfabf161c90e5.zip |
[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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/gic.h b/include/asm-mips/gic.h index 3a492f225f00..954807d9d66a 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) \ |