Paul Richards bffa0592e2 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-19 11:20:11 +00:00
1994-08-14 23:32:45 +00:00
1994-08-14 23:32:45 +00:00
1994-08-18 22:36:09 +00:00
1994-08-21 04:55:31 +00:00
1994-08-02 07:55:43 +00:00
1994-08-21 04:55:31 +00:00
1994-08-21 04:55:31 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00