diff options
author | gallatin <gallatin@FreeBSD.org> | 2000-12-01 15:27:48 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2000-12-01 15:27:48 +0000 |
commit | f3693740f3994723ae463b65c2ca1ba2bd1f063c (patch) | |
tree | b64996992392b03927ef23bbc7f9eb5e698a61f2 /sys/alpha/pci/t2_pci.c | |
parent | 700fece2f363b189cbf2531a212f9895b1394808 (diff) | |
download | FreeBSD-src-f3693740f3994723ae463b65c2ca1ba2bd1f063c.zip FreeBSD-src-f3693740f3994723ae463b65c2ca1ba2bd1f063c.tar.gz |
Convert the pcib_{read,write}_config args from signed to unsigned,
like the args to the config space accessors these functions replaced.
This reduces the likelyhood of overflow when the args are used in
macros on the alpha. This prevents memory management faults when
probing the pci bus on sables, multias and nonames.
Approved by: dfr
Tested by: Bernd Walter <ticso@cicely8.cicely.de>
Diffstat (limited to 'sys/alpha/pci/t2_pci.c')
-rw-r--r-- | sys/alpha/pci/t2_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/pci/t2_pci.c b/sys/alpha/pci/t2_pci.c index 687aa17..4424ed9 100644 --- a/sys/alpha/pci/t2_pci.c +++ b/sys/alpha/pci/t2_pci.c @@ -136,8 +136,8 @@ t2_pcib_maxslots(device_t dev) } while (0) static u_int32_t -t2_pcib_read_config(device_t dev, int b, int s, int f, - int reg, int width) +t2_pcib_read_config(device_t dev, u_int b, u_int s, u_int f, + u_int reg, int width) { switch (width) { case 1: @@ -153,8 +153,8 @@ t2_pcib_read_config(device_t dev, int b, int s, int f, } static void -t2_pcib_write_config(device_t dev, int b, int s, int f, - int reg, u_int32_t val, int width) +t2_pcib_write_config(device_t dev, u_int b, u_int s, u_int f, + u_int reg, u_int32_t val, int width) { switch (width) { case 1: |