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/dev/pci | |
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/dev/pci')
-rw-r--r-- | sys/dev/pci/pcib_if.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pci/pcib_if.m b/sys/dev/pci/pcib_if.m index 2b38ef7..5224778 100644 --- a/sys/dev/pci/pcib_if.m +++ b/sys/dev/pci/pcib_if.m @@ -46,10 +46,10 @@ METHOD int maxslots { # METHOD u_int32_t read_config { device_t dev; - int bus; - int slot; - int func; - int reg; + u_int bus; + u_int slot; + u_int func; + u_int reg; int width; }; @@ -62,10 +62,10 @@ METHOD u_int32_t read_config { # METHOD void write_config { device_t dev; - int bus; - int slot; - int func; - int reg; + u_int bus; + u_int slot; + u_int func; + u_int reg; u_int32_t value; int width; }; |