diff options
author | marcel <marcel@FreeBSD.org> | 2008-11-22 21:22:53 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-11-22 21:22:53 +0000 |
commit | 85838645d52c37ad617e87f199115252e9c24c50 (patch) | |
tree | 214e5c1fd2fcf62f38389daa3dc642f18ca30645 /sys/dev | |
parent | 5318a382021b6858d3c7b227374bb63f1cee475b (diff) | |
download | FreeBSD-src-85838645d52c37ad617e87f199115252e9c24c50.zip FreeBSD-src-85838645d52c37ad617e87f199115252e9c24c50.tar.gz |
Cast to uintptr_t before casting to void*. This allows the
QUICC backend to be built on LP64 platforms. This makes it
possible to include the QUICC backend in the kernel module.
PR: 127120
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/uart/uart_dev_quicc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/uart/uart_dev_quicc.c b/sys/dev/uart/uart_dev_quicc.c index 3a4abc6..df327a8 100644 --- a/sys/dev/uart/uart_dev_quicc.c +++ b/sys/dev/uart/uart_dev_quicc.c @@ -218,7 +218,7 @@ quicc_getc(struct uart_bas *bas, struct mtx *hwmtx) uart_lock(hwmtx); } - buf = (void *)quicc_read4(bas, rb + 4); + buf = (void *)(uintptr_t)quicc_read4(bas, rb + 4); c = *buf; quicc_write2(bas, rb, sc | 0x8000); @@ -433,7 +433,7 @@ quicc_bus_receive(struct uart_softc *sc) uart_lock(sc->sc_hwmtx); rb = quicc_read2(bas, QUICC_PRAM_SCC_RBASE(bas->chan - 1)); st = quicc_read2(bas, rb); - buf = (void *)quicc_read4(bas, rb + 4); + buf = (void *)(uintptr_t)quicc_read4(bas, rb + 4); uart_rx_put(sc, *buf); quicc_write2(bas, rb, st | 0x9000); uart_unlock(sc->sc_hwmtx); @@ -477,7 +477,7 @@ quicc_bus_transmit(struct uart_softc *sc) uart_lock(sc->sc_hwmtx); tb = quicc_read2(bas, QUICC_PRAM_SCC_TBASE(bas->chan - 1)); st = quicc_read2(bas, tb); - buf = (void *)quicc_read4(bas, tb + 4); + buf = (void *)(uintptr_t)quicc_read4(bas, tb + 4); *buf = sc->sc_txbuf[0]; quicc_write2(bas, tb + 2, 1); quicc_write2(bas, tb, st | 0x9000); |