paul 42b0369dee 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:
1994-08-23 11:57:19 +00:00
..
1994-08-23 07:52:29 +00:00
1994-08-20 16:03:26 +00:00
1994-08-21 07:19:45 +00:00
1994-08-23 07:52:29 +00:00
1994-08-02 07:55:43 +00:00
1994-08-21 05:44:12 +00:00
1994-08-21 05:27:42 +00:00
1994-08-21 06:22:12 +00:00
1994-08-02 07:55:43 +00:00
1994-08-22 19:34:03 +00:00
1994-08-02 07:55:43 +00:00
1994-08-21 07:19:45 +00:00
1994-08-21 07:19:45 +00:00
1994-08-02 07:55:43 +00:00