diff options
author | Marius Strobl <marius@FreeBSD.org> | 2004-08-15 21:37:52 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2004-08-15 21:37:52 +0000 |
commit | 775f3c3c2836a427593ce9b290b57cdeacc1b3e9 (patch) | |
tree | aa4c20e6be637866aa0f89406439a2fbf99e45f2 /sys/sparc64/pci/ofw_pcibus.c | |
parent | 6d63e458346a2de744024f23a92c93240b8400ed (diff) | |
download | src-775f3c3c2836a427593ce9b290b57cdeacc1b3e9.tar.gz src-775f3c3c2836a427593ce9b290b57cdeacc1b3e9.zip |
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
Notes
Notes:
svn path=/head/; revision=133774
Diffstat (limited to 'sys/sparc64/pci/ofw_pcibus.c')
-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 85369d1f4cd4..c4cf9e5a07b5 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)); |