Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2009 20:44:06 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188190 - head/sys/dev/exca
Message-ID:  <200902052044.n15Ki6CM038265@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Feb  5 20:44:06 2009
New Revision: 188190
URL: http://svn.freebsd.org/changeset/base/188190

Log:
  Don't check for mapping above 4GB on 32-bit platforms.

Modified:
  head/sys/dev/exca/exca.c

Modified: head/sys/dev/exca/exca.c
==============================================================================
--- head/sys/dev/exca/exca.c	Thu Feb  5 20:43:47 2009	(r188189)
+++ head/sys/dev/exca/exca.c	Thu Feb  5 20:44:06 2009	(r188190)
@@ -257,11 +257,13 @@ exca_mem_map(struct exca_softc *sc, int 
 	if (win >= EXCA_MEM_WINS)
 		return (ENOSPC);
 	if (sc->flags & EXCA_HAS_MEMREG_WIN) {
+#ifdef _LP64
 		if (rman_get_start(res) >> (EXCA_MEMREG_WIN_SHIFT + 8) != 0) {
 			device_printf(sc->dev,
 			    "Does not support mapping above 4GB.");
 			return (EINVAL);
 		}
+#endif
 	} else {
 		if (rman_get_start(res) >> EXCA_MEMREG_WIN_SHIFT != 0) {
 			device_printf(sc->dev,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902052044.n15Ki6CM038265>