38101

Snippet from anaconda/loader/kon2/include/mem.h

static __inline__
    unsigned char PortInb(unsigned short port)
{
    unsigned char value;
    __asm__ volatile ("inb %1,%0"
                      :"=a" (value)
                      :"d"((unsigned short) port));
    return value;
}
extern u_char PortInb(u_short);

Ermm… how does that EVER work? define a function as inline in the header and then mark it extern.

gcc 3.1 doesn't let it work, though… whee!