summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1994-08-23 11:57:19 +0000
committerpaul <paul@FreeBSD.org>1994-08-23 11:57:19 +0000
commit42b0369dee94a99e593555c54ebd793c9518cf7f (patch)
tree4a124696cea61215a8336ea47c4f081019006f98 /sys
parent8969df1ef1869c5e296b331c231c22d7f3004c1e (diff)
downloadFreeBSD-src-42b0369dee94a99e593555c54ebd793c9518cf7f.zip
FreeBSD-src-42b0369dee94a99e593555c54ebd793c9518cf7f.tar.gz
I've disabled this piece of code since it's what's
hosing syscons. Doesn anyone know anything about this or can we just delete it now? /* * This roundabout method of returning a u_char helps stop gcc-1.40 from * generating unnecessary movzbl's. */ #ifdef disable_for_gcc-2_6_0 #define inb(port) ((u_char) u_int_inb(port)) #endif static inline u_int u_int_inb(u_int port) { u_char data; /* * We use %%dx and not %1 here because i/o is done at %dx and not at * %edx, while gcc-2.2.2 generates inferior code (movw instead of movl) * if we tell it to load (u_short) port. */ __asm __volatile("inb %%dx,%0" : "=a" (data) : "d" (port)); return data; } Reviewed by: Submitted by:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/cpufunc.h4
-rw-r--r--sys/i386/include/cpufunc.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 8c99782..12d1585 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.16 1994/08/13 03:49:49 wollman Exp $
+ * $Id: cpufunc.h,v 1.17 1994/08/18 22:34:46 wollman Exp $
*/
/*
@@ -74,7 +74,9 @@ enable_intr(void)
* This roundabout method of returning a u_char helps stop gcc-1.40 from
* generating unnecessary movzbl's.
*/
+#ifdef disable_for_gcc-2_6_0
#define inb(port) ((u_char) u_int_inb(port))
+#endif
static inline u_int
u_int_inb(u_int port)
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 8c99782..12d1585 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.16 1994/08/13 03:49:49 wollman Exp $
+ * $Id: cpufunc.h,v 1.17 1994/08/18 22:34:46 wollman Exp $
*/
/*
@@ -74,7 +74,9 @@ enable_intr(void)
* This roundabout method of returning a u_char helps stop gcc-1.40 from
* generating unnecessary movzbl's.
*/
+#ifdef disable_for_gcc-2_6_0
#define inb(port) ((u_char) u_int_inb(port))
+#endif
static inline u_int
u_int_inb(u_int port)
OpenPOWER on IntegriCloud