__LP64__ is what's defined, not _LP64_, according to the manual (and

also experience).
This commit is contained in:
Warner Losh 2009-03-09 13:29:13 +00:00
parent cd6d5177a7
commit d3ec8e547e

View File

@ -257,7 +257,7 @@ 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
#ifdef __LP64__
if (rman_get_start(res) >> (EXCA_MEMREG_WIN_SHIFT + 8) != 0) {
device_printf(sc->dev,
"Does not support mapping above 4GB.");