linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Fix VGA_MAP_MEM macro.

To: "Steven J. Hill" <Steven.Hill@imgtec.com>
Subject: Re: [PATCH] MIPS: Fix VGA_MAP_MEM macro.
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 18 Sep 2013 17:20:47 +0200
Cc: linux-mips@linux-mips.org, Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
In-reply-to: <1378859764-17544-1-git-send-email-Steven.Hill@imgtec.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1378859764-17544-1-git-send-email-Steven.Hill@imgtec.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
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

<Prev in Thread] Current Thread [Next in Thread>