diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2008-08-19 17:49:53 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2008-08-19 17:49:53 +0000 |
commit | 99c085690365fa7af18863be292d7ada32fcf53a (patch) | |
tree | 8c305cfb60e6cb7e95bfe99321070528c7a5e649 /payloads/libpayload/drivers/video/vga.c | |
parent | addf443e1206f04e46828ac4f19a04788a8046fc (diff) |
make all drivers relocatable. Per default, an 1:1 mapping is assumed.
Patch to add relocation to libpayload will follow.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3524 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/drivers/video/vga.c')
-rw-r--r-- | payloads/libpayload/drivers/video/vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/video/vga.c b/payloads/libpayload/drivers/video/vga.c index 540e673389..37acde7637 100644 --- a/payloads/libpayload/drivers/video/vga.c +++ b/payloads/libpayload/drivers/video/vga.c @@ -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) { |