make all drivers relocatable. Per default, an 1:1 mapping is assumed.
[coreboot.git] / payloads / libpayload / drivers / video / vga.c
index 540e6733891e75a372244c34ed26e4c621cb955c..37acde7637ddd7dd46442dec67ee849f0c8220ec 100644 (file)
@@ -36,7 +36,7 @@
 #define CRTC_DATA       0x3d5
 
 #define VIDEO(_r, _c)\
-  ((u16 *) (0xB8000 + ((_r) * (VIDEO_COLS * 2)) + ((_c) * 2)))
+  ((u16 *) (phys_to_virt(0xB8000) + ((_r) * (VIDEO_COLS * 2)) + ((_c) * 2)))
 
 static u8 crtc_read(u8 index)
 {