diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-10-09 20:06:37 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-10-09 20:06:37 +0000 |
commit | 01588772fe17a2298b05ce0c9210b3aa3c38a82e (patch) | |
tree | 0131ce9e171a7fb937264648f527160d39f7aee6 /sys/dev | |
parent | a8bb7d845f99e3951cb9c035447cd76388733170 (diff) |
Fix build on 32 bit; paddr in rtsx_xfer_dma needs to be 64bit on all platforms.
Found the hard way by deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/rtsx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rtsx.c b/sys/dev/ic/rtsx.c index 2226432d6db..68cb7588ccc 100644 --- a/sys/dev/ic/rtsx.c +++ b/sys/dev/ic/rtsx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsx.c,v 1.20 2017/10/09 16:12:20 stsp Exp $ */ +/* $OpenBSD: rtsx.c,v 1.21 2017/10/09 20:06:36 stsp Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -1183,7 +1183,7 @@ rtsx_xfer_adma(struct rtsx_softc *sc, struct sdmmc_command *cmd) /* Initialize scatter-gather transfer descriptors. */ descp = (uint64_t *)sc->admabuf; for (i = 0; i < cmd->c_dmamap->dm_nsegs; i++) { - bus_addr_t paddr = cmd->c_dmamap->dm_segs[i].ds_addr; + uint64_t paddr = cmd->c_dmamap->dm_segs[i].ds_addr; uint64_t len = cmd->c_dmamap->dm_segs[i].ds_len; uint8_t sgflags = RTSX_SG_VALID | RTSX_SG_TRANS_DATA; uint64_t desc; |