From 2f4f3e9365d28147d3e529510f51c1aa6755e554 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 5 Feb 2009 20:44:06 +0000 Subject: [PATCH] Don't check for mapping above 4GB on 32-bit platforms. --- sys/dev/exca/exca.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c index 9725e097a2f..731fb7afcdd 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, -- 2.45.2