Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2010 22:07:50 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203451 - head/sys/dev/fb
Message-ID:  <201002032207.o13M7oUL022113@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002032207.o13M7oUL022113>