Skip to content

Commit

Permalink
MIPS: Fix VGA_MAP_MEM macro.
Browse files Browse the repository at this point in the history
Use the CKSEG1ADDR macro when calculating VGA_MAP_MEM.

[[email protected]: Include <asm/addrspace.h for CKSEG1ADDR.]

Signed-off-by: Leonid Yegoshin <[email protected]>
Signed-off-by: Steven J. Hill <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5814/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Leonid Yegoshin authored and ralfbaechle committed Sep 18, 2013
1 parent 9c9b415 commit 258e1e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/include/asm/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
#ifndef _ASM_VGA_H
#define _ASM_VGA_H

#include <asm/addrspace.h>
#include <asm/byteorder.h>

/*
* On the PC, we can just recalculate addresses and then
* 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))
Expand Down

0 comments on commit 258e1e7

Please sign in to comment.