svn commit: r203451 - head/sys/dev/fb

Jung-uk Kim jkim at FreeBSD.org
Wed Feb 3 22:07:53 UTC 2010


Author: jkim
Date: Wed Feb  3 22:07:50 2010
New Revision: 203451
URL: http://svn.freebsd.org/changeset/base/203451

Log:
  Correct virtual address of frame buffer for non-linear mode.
  
  Reported by:	Marc UBM Bocklet (ubm dot freebsd at googlemail dot com)

Modified:
  head/sys/dev/fb/vesa.c

Modified: head/sys/dev/fb/vesa.c
==============================================================================
--- head/sys/dev/fb/vesa.c	Wed Feb  3 22:05:31 2010	(r203450)
+++ head/sys/dev/fb/vesa.c	Wed Feb  3 22:07:50 2010	(r203451)
@@ -1317,7 +1317,7 @@ vesa_set_mode(video_adapter_t *adp, int 
 	} 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;
 	}


More information about the svn-src-head mailing list