X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fvga.h;h=012ebd1a51f36e5da90cde3a0a9d4eed9909792e;hb=refs%2Fheads%2Fvserver;hp=0ecf68ac03aa95c312a15876473d5df5a8851301;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/include/asm-x86_64/vga.h b/include/asm-x86_64/vga.h index 0ecf68ac0..012ebd1a5 100644 --- 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. */ +#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))