diff options
author | mike <mike@FreeBSD.org> | 2003-01-19 15:13:41 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-01-19 15:13:41 +0000 |
commit | aa051f35c24e0abc157e86121a238a55b7f23d84 (patch) | |
tree | f8353b3ae14fbcc19edc8ebf3c15a15cfbbdc073 /sys/dev/advansys | |
parent | b9e99ecd32ebc4f89842713a1c5097c776c825c7 (diff) | |
download | FreeBSD-src-aa051f35c24e0abc157e86121a238a55b7f23d84.zip FreeBSD-src-aa051f35c24e0abc157e86121a238a55b7f23d84.tar.gz |
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in
an int on machines with 64 bit longs.
Noticed by: alpha tinderbox
Diffstat (limited to 'sys/dev/advansys')
-rw-r--r-- | sys/dev/advansys/adv_isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/advansys/adv_isa.c b/sys/dev/advansys/adv_isa.c index 7162a9b..b8c5e3f 100644 --- a/sys/dev/advansys/adv_isa.c +++ b/sys/dev/advansys/adv_isa.c @@ -226,7 +226,7 @@ adv_isa_probe(device_t dev) /*filter*/NULL, /*filterarg*/NULL, maxsize, - /*nsegs*/BUS_SPACE_UNRESTRICTED, + /*nsegs*/~0, maxsegsz, /*flags*/0, &adv->parent_dmat); |