Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



(kgdb) p/x adp->va_info->vi_window
$7 = 0xb8000

I don't know enough about how the return values of this ioctl are used 
to know how to fix it  My knee jerk reaction is to do the following.
I'm wondering what the syscons author thinks?

Index: fb.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/fb/fb.c,v
retrieving revision 1.11
diff -u -r1.11 fb.c
--- fb.c	1999/12/07 11:23:58	1.11
+++ fb.c	2000/04/25 01:36:14
@@ -719,7 +719,11 @@
 		((video_adapter_info_t *)arg)->va_mem_base = adp->va_mem_base;
 		((video_adapter_info_t *)arg)->va_mem_size = adp->va_mem_size;
 		((video_adapter_info_t *)arg)->va_window
+#ifdef __i386__
 			= vtophys(adp->va_window);
+#else
+			= adp->va_window;
+#endif
 		((video_adapter_info_t *)arg)->va_window_size
 			= adp->va_window_size;
 		((video_adapter_info_t *)arg)->va_window_gran
@@ -727,7 +731,11 @@
 		((video_adapter_info_t *)arg)->va_window_orig
 			= adp->va_window_orig;
 		((video_adapter_info_t *)arg)->va_unused0
+#ifdef __i386__
 			= (adp->va_buffer) ? vtophys(adp->va_buffer) : 0;
+#else
+			= adp->va_buffer;
+#endif
 		((video_adapter_info_t *)arg)->va_buffer_size
 			= adp->va_buffer_size;
 		((video_adapter_info_t *)arg)->va_mode = adp->va_mode;


Cheers,

Drew
------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer	http://www.cs.duke.edu/~gallatin
Duke University				Email: gallatin@xxxxxxxxxxx
Department of Computer Science		Phone: (919) 660-6590


To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-alpha" in the body of the message