Module Name: src
Committed By: macallan
Date: Tue Mar 8 04:47:10 UTC 2011
Modified Files:
src/sys/dev/wsfb: genfb.c
Log Message:
fix build for LP32
thanks to uebayasi@
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/wsfb/genfb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/wsfb/genfb.c
diff -u src/sys/dev/wsfb/genfb.c:1.39 src/sys/dev/wsfb/genfb.c:1.40
--- src/sys/dev/wsfb/genfb.c:1.39 Tue Mar 8 03:16:30 2011
+++ src/sys/dev/wsfb/genfb.c Tue Mar 8 04:47:10 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.39 2011/03/08 03:16:30 macallan Exp $ */
+/* $NetBSD: genfb.c,v 1.40 2011/03/08 04:47:10 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.39 2011/03/08 03:16:30 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.40 2011/03/08 04:47:10 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -135,7 +135,7 @@
sc->sc_fbaddr = NULL;
if (prop_dictionary_get_uint64(dict, "virtual_address", &fbaddr)) {
- sc->sc_fbaddr = (void *)fbaddr;
+ sc->sc_fbaddr = (void *)(uintptr_t)fbaddr;
}
if (!prop_dictionary_get_uint32(dict, "linebytes", &sc->sc_stride))