diff options
author | peter <peter@FreeBSD.org> | 2002-10-09 08:54:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-10-09 08:54:32 +0000 |
commit | 9a5a0eace469d8dfc930727142fecf4d13009558 (patch) | |
tree | 1258a45d825402feb4dc26895b1b7c942627c4de /sys/dev/aha/aha_mca.c | |
parent | b1adf94578d5029984e57d6efb037d8aa50970e8 (diff) | |
download | FreeBSD-src-9a5a0eace469d8dfc930727142fecf4d13009558.zip FreeBSD-src-9a5a0eace469d8dfc930727142fecf4d13009558.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.
Diffstat (limited to 'sys/dev/aha/aha_mca.c')
-rw-r--r-- | sys/dev/aha/aha_mca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aha/aha_mca.c b/sys/dev/aha/aha_mca.c index 70b422c..ed1aea0 100644 --- a/sys/dev/aha/aha_mca.c +++ b/sys/dev/aha/aha_mca.c @@ -180,7 +180,7 @@ aha_mca_attach (device_t dev) NULL, NULL, /* maxsize */ BUS_SPACE_MAXSIZE_24BIT, - /* nsegments */ BUS_SPACE_UNRESTRICTED, + /* nsegments */ ~0, /* maxsegsz */ BUS_SPACE_MAXSIZE_24BIT, /* flags */ 0, &sc->parent_dmat); |