diff options
author | orion <orion@FreeBSD.org> | 2003-02-23 01:06:58 +0000 |
---|---|---|
committer | orion <orion@FreeBSD.org> | 2003-02-23 01:06:58 +0000 |
commit | 4d55664d0fa2ec63bb20fe7d08b4a31c2015a752 (patch) | |
tree | ddd63c0a9d4094bb797e4d78d0270e6c5481dbf5 /sys/dev/sound/pci | |
parent | 87582b9c57b44ade7cb2f19751545fb813262b93 (diff) | |
download | FreeBSD-src-4d55664d0fa2ec63bb20fe7d08b4a31c2015a752.zip FreeBSD-src-4d55664d0fa2ec63bb20fe7d08b4a31c2015a752.tar.gz |
Fix compilation on alpha. Pointy hat to Marcel.
Diffstat (limited to 'sys/dev/sound/pci')
-rw-r--r-- | sys/dev/sound/pci/emu10k1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index edfdb1d..db8cf73 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -1094,7 +1094,7 @@ emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr) ofs = 0; for (idx = start; idx < start + blksz; idx++) { mem->bmap[idx >> 3] |= 1 << (idx & 7); - tmp = (u_int32_t)((u_int8_t *)&blk->buf_addr + ofs); + tmp = (u_int32_t)(u_long)((u_int8_t *)&blk->buf_addr + ofs); /* printf("pte[%d] -> %x phys, %x virt\n", idx, tmp, ((u_int32_t)buf) + ofs); */ mem->ptb_pages[idx] = (tmp << 1) | idx; ofs += EMUPAGESIZE; |