All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Fix VGA_MAP_MEM macro.
@ 2013-09-11  0:36 Steven J. Hill
  2013-09-18 15:20 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Steven J. Hill @ 2013-09-11  0:36 UTC (permalink / raw)
  To: linux-mips; +Cc: Leonid Yegoshin, ralf, Steven J. Hill

From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>

Use the CKSEG1ADDR macro when calculating VGA_MAP_MEM.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
---
 arch/mips/include/asm/vga.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/include/asm/vga.h b/arch/mips/include/asm/vga.h
index f4cff7e..4795206 100644
--- a/arch/mips/include/asm/vga.h
+++ b/arch/mips/include/asm/vga.h
@@ -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))
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: Fix VGA_MAP_MEM macro.
  2013-09-11  0:36 [PATCH] MIPS: Fix VGA_MAP_MEM macro Steven J. Hill
@ 2013-09-18 15:20 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2013-09-18 15:20 UTC (permalink / raw)
  To: Steven J. Hill; +Cc: linux-mips, Leonid Yegoshin

On Tue, Sep 10, 2013 at 07:36:04PM -0500, Steven J. Hill wrote:

> diff --git a/arch/mips/include/asm/vga.h b/arch/mips/include/asm/vga.h
> index f4cff7e..4795206 100644
> --- a/arch/mips/include/asm/vga.h
> +++ b/arch/mips/include/asm/vga.h
> @@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-18 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11  0:36 [PATCH] MIPS: Fix VGA_MAP_MEM macro Steven J. Hill
2013-09-18 15:20 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.