MIPS: Fix VGA_MAP_MEM macro.
PATCH 1/1 MIPS: Fix VGA_MAP_MEM macro.
From: Leonid Yegoshin <[email protected]>
Use the CKSEG1ADDR macro when calculating VGA_MAP_MEM.
Signed-off-by Leonid Yegoshin <[email protected]>
Signed-off-by Steven J. Hill <[email protected]>
--- arch/mips/include/asm/vga.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/include/asm/vga.h +1 -1
@@ -13,7 +13,7 @@* access the videoram directly without any black magic. */ -#define VGA_MAP_MEM (x, s) (0xb0000000L + (unsigned long)(x)) +#define VGA_MAP_MEM (x, s) CKSEG1ADDR(0x10000000L + (unsigned long)(x))#define vga_readb (x) (*(x))#define vga_writeb (x, y) (*(y) = (x))
Signature · 1 line
1.7.9.5
Ralf Baechle
Appliedarch/mips/include/asm/vga.h line 16
Quoted 10 lines · Steven J. Hill
arch/mips/include/asm/vga.h +1
-1@@ -13,7 +13,7 @@* access the videoram directly without any black magic. */ -#define VGA_MAP_MEM (x, s) (0xb0000000L + (unsigned long)(x)) +#define VGA_MAP_MEM (x, s) CKSEG1ADDR(0x10000000L + (unsigned long)(x))
If using an addrspace.h macro better include that header file! I've fixed that.
Applied. Thanks!
Ralf