vga(4): Fix truncation of 64-bit addresses.
authorJordan Gordeev <jgordeev@dir.bg>
Sun, 26 Apr 2009 19:11:57 +0000 (22:11 +0300)
committerJordan Gordeev <jgordeev@dir.bg>
Sun, 26 Apr 2009 19:11:57 +0000 (22:11 +0300)
From FreeBSD revision 115253.

sys/dev/video/fb/vga.c

index fe5bc18..11cb82c 100644 (file)
@@ -1338,7 +1338,7 @@ vga_save_font(video_adapter_t *adp, int page, int fontsize, u_char *data,
 {
 #ifndef VGA_NO_FONT_LOADING
     u_char buf[PARAM_BUFSIZE];
-    u_int32_t segment;
+    vm_offset_t segment;
     int c;
 #ifdef VGA_ALT_SEQACCESS
     u_char val = 0;
@@ -1411,7 +1411,7 @@ vga_load_font(video_adapter_t *adp, int page, int fontsize, u_char *data,
 {
 #ifndef VGA_NO_FONT_LOADING
     u_char buf[PARAM_BUFSIZE];
-    u_int32_t segment;
+    vm_offset_t segment;
     int c;
 #ifdef VGA_ALT_SEQACCESS
     u_char val = 0;