diff options
Diffstat (limited to 'sys/dev/exca')
-rw-r--r-- | sys/dev/exca/exca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c index 9725e09..731fb7a 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, |