Correct virtual address of frame buffer for non-linear mode.

Reported by:	Marc UBM Bocklet (ubm dot freebsd at googlemail dot com)
This commit is contained in:
jkim 2010-02-03 22:07:50 +00:00
parent d9e272e1f9
commit f9144e3f76

View File

@ -1317,7 +1317,7 @@ vesa_set_mode(video_adapter_t *adp, int mode)
} else {
vesa_adp->va_buffer = 0;
vesa_adp->va_buffer_size = info.vi_buffer_size;
vesa_adp->va_window = BIOS_PADDRTOVADDR(info.vi_window);
vesa_adp->va_window = (vm_offset_t)x86bios_offset(info.vi_window);
vesa_adp->va_window_size = info.vi_window_size;
vesa_adp->va_window_gran = info.vi_window_gran;
}