Skip to contentSkip to conversation

MIPS: Fix VGA_MAP_MEM macro.

PATCH Applied Steven J. Hill 2 participants 2 messages Sep 11, 2013 – Sep 18, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Fix VGA_MAP_MEM macro.

From: Leonid Yegoshin <[email protected]>

Use the CKSEG1ADDR macro when calculating VGA_MAP_MEM.

---
 arch/mips/include/asm/vga.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/include/asm/vga.h +1 -1
index f4cff7e..4795206 100644
@@ -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
Applied
#1 lore raw

arch/mips/include/asm/vga.h line 16

Quoted 10 lines · Steven J. Hill
arch/mips/include/asm/vga.h +1 -1
index f4cff7e..4795206 100644
@@ -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