diff options
author | marius <marius@FreeBSD.org> | 2004-08-15 21:37:52 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2004-08-15 21:37:52 +0000 |
commit | 98632f045699d138b6e9a4d385dd734feef3ce52 (patch) | |
tree | aa4c20e6be637866aa0f89406439a2fbf99e45f2 /sys/sparc64/pci | |
parent | d463e5d529baf19fa1ea3fbd64d6d61ddd6f0338 (diff) | |
download | FreeBSD-src-98632f045699d138b6e9a4d385dd734feef3ce52.zip FreeBSD-src-98632f045699d138b6e9a4d385dd734feef3ce52.tar.gz |
Correct some uses of the wrong members of the *min()/*max()-familiy, e.g.
min() on unsigned long. None of these are believed to have been fatal though.
Reviewed by: tmm
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r-- | sys/sparc64/pci/ofw_pcibus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c index 85369d1..c4cf9e5 100644 --- a/sys/sparc64/pci/ofw_pcibus.c +++ b/sys/sparc64/pci/ofw_pcibus.c @@ -179,7 +179,7 @@ ofw_pcibus_setup_device(device_t bridge, u_int busno, u_int slot, u_int func) PCIR_LATTIMER, 1), lat); #endif /* OFW_PCI_DEBUG */ PCIB_WRITE_CONFIG(bridge, busno, slot, func, - PCIR_LATTIMER, imin(lat, 255), 1); + PCIR_LATTIMER, min(lat, 255), 1); } /* @@ -187,7 +187,7 @@ ofw_pcibus_setup_device(device_t bridge, u_int busno, u_int slot, u_int func) * The role of the streaming cache is unclear in write invalidate * transfers, so it is made sure that it's line size is always reached. */ - clnsz = imax(cache.ec_linesize, STRBUF_LINESZ); + clnsz = max(cache.ec_linesize, STRBUF_LINESZ); KASSERT((clnsz / STRBUF_LINESZ) * STRBUF_LINESZ == clnsz && (clnsz / cache.ec_linesize) * cache.ec_linesize == clnsz && (clnsz / 4) * 4 == clnsz, ("bogus cache line size %d", clnsz)); |