Date: Tue, 23 Feb 2010 01:00:19 +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: r204235 - head/sys/dev/fb Message-ID: <201002230100.o1N10JIn010742@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Tue Feb 23 01:00:19 2010 New Revision: 204235 URL: http://svn.freebsd.org/changeset/base/204235 Log: Fix FBIO_ADPINFO ioctl on amd64. Modified: head/sys/dev/fb/fb.c Modified: head/sys/dev/fb/fb.c ============================================================================== --- head/sys/dev/fb/fb.c Tue Feb 23 01:00:15 2010 (r204234) +++ head/sys/dev/fb/fb.c Tue Feb 23 01:00:19 2010 (r204235) @@ -653,7 +653,7 @@ fb_commonioctl(video_adapter_t *adp, u_l ((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__ +#if defined(__amd64__) || defined(__i386__) = vtophys(adp->va_window); #else = adp->va_window; @@ -665,8 +665,8 @@ fb_commonioctl(video_adapter_t *adp, u_l ((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; +#if defined(__amd64__) || defined(__i386__) + = adp->va_buffer != 0 ? vtophys(adp->va_buffer) : 0; #else = adp->va_buffer; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002230100.o1N10JIn010742>