diff options
author | bde <bde@FreeBSD.org> | 2003-08-06 18:21:27 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2003-08-06 18:21:27 +0000 |
commit | 0886e92066da3ef957a2cb69d7e59754a2dcab5d (patch) | |
tree | 71e4af9850ba8b31b0d742e4067a78c1e30dbd29 | |
parent | 73595a9b275edfae992700efdd81e6fcbee8a020 (diff) | |
download | FreeBSD-src-0886e92066da3ef957a2cb69d7e59754a2dcab5d.zip FreeBSD-src-0886e92066da3ef957a2cb69d7e59754a2dcab5d.tar.gz |
Backed out previous commit. This restores the warning about pessimized
(short) types for the port arg of inb() (rev.1.56). The warning started
working for u_short types with gcc-3.3. The pessimizations exposed
by this been fixed except for the cx and oltr drivers where the breakage
of the warning has been pushed to the drivers.
-rw-r--r-- | sys/i386/include/cpufunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index d2cfdf6..c7f9ace 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -157,7 +157,7 @@ halt(void) #define inb(port) __extension__ ({ \ u_char _data; \ if (__builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \ - && (0x10000 + (port)) < 0x20000) \ + && (port) < 0x10000) \ _data = inbc(port); \ else \ _data = inbv(port); \ @@ -165,7 +165,7 @@ halt(void) #define outb(port, data) ( \ __builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \ - && (0x10000 + (port)) < 0x20000 \ + && (port) < 0x10000 \ ? outbc(port, data) : outbv(port, data)) static __inline u_char |