git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-x86_64
/
vga.h
diff --git
a/include/asm-x86_64/vga.h
b/include/asm-x86_64/vga.h
index
ef0c0e5
..
012ebd1
100644
(file)
--- a/
include/asm-x86_64/vga.h
+++ b/
include/asm-x86_64/vga.h
@@
-12,7
+12,11
@@
* access the videoram directly without any black magic.
*/
* access the videoram directly without any black magic.
*/
-#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
+#ifdef CONFIG_XEN
+#define VGA_MAP_MEM(x,s) (unsigned long)isa_bus_to_virt(x)
+#else
+#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)
+#endif
#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))