summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-06-07 20:37:14 +0000
committersam <sam@FreeBSD.org>2006-06-07 20:37:14 +0000
commitf03871f3549c3890bb9b8c3a3cd97b3140919564 (patch)
tree78c4b54432789f44ecee07320ddc5aaf9c292f9b /sys/dev
parent9c0742c63fb25f5279236ef1639eab43edfeb4d2 (diff)
downloadFreeBSD-src-f03871f3549c3890bb9b8c3a3cd97b3140919564.zip
FreeBSD-src-f03871f3549c3890bb9b8c3a3cd97b3140919564.tar.gz
bandaid type coercion for ia64
Submitted by: marcel
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c
index 686fc4d..d11f929 100644
--- a/sys/dev/ath/if_ath_pci.c
+++ b/sys/dev/ath/if_ath_pci.c
@@ -148,8 +148,8 @@ ath_pci_attach(device_t dev)
device_printf(dev, "cannot map register space\n");
goto bad;
}
- /* NB: these casts are known to be safe */
- sc->sc_st = (HAL_BUS_TAG) rman_get_bustag(psc->sc_sr);
+ /* XXX uintptr_t is a bandaid for ia64; to be fixed */
+ sc->sc_st = (HAL_BUS_TAG)(uintptr_t) rman_get_bustag(psc->sc_sr);
sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr);
/*
* Mark device invalid so any interrupts (shared or otherwise)
OpenPOWER on IntegriCloud