summaryrefslogtreecommitdiff
path: root/sys/dev/exca
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-02-05 20:44:06 +0000
committerWarner Losh <imp@FreeBSD.org>2009-02-05 20:44:06 +0000
commit2f4f3e9365d28147d3e529510f51c1aa6755e554 (patch)
treefa702a6c930b4e03696e144e9a926c746c533e69 /sys/dev/exca
parent1e9ec798a11bf9529d790fea488de26d668c043d (diff)
Notes
Diffstat (limited to 'sys/dev/exca')
-rw-r--r--sys/dev/exca/exca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c
index 9725e097a2ff..731fb7afcddf 100644
--- a/sys/dev/exca/exca.c
+++ b/sys/dev/exca/exca.c
@@ -257,11 +257,13 @@ exca_mem_map(struct exca_softc *sc, int kind, struct resource *res)
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,