From 637068b1d3222059800882e618748bc655cd8522 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 23 May 2003 05:10:49 +0000 Subject: [PATCH] Low risk amd64 fix. Use a vm_offset_t for the virtual location of the buffer space instead of a u_int32_t. Otherwise the upper 32 bits of the address space get truncated and syscons blows up. Approved by: re (safe, low risk amd64 fixes) --- sys/dev/fb/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index 7c0627f978de..945428f17935 100644 --- a/sys/dev/fb/vga.c +++ b/sys/dev/fb/vga.c @@ -1792,7 +1792,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 int s; @@ -1872,7 +1872,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 int s;