Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 1995 16:45:46 +0100
From:      Torbjorn Granlund <tege@matematik.su.se>
To:        freebsd-hackers@freebsd.org
Subject:   outb/inb usage
Message-ID:  <199511151545.QAA08749@insanus.matematik.su.se>

next in thread | raw e-mail | index | archive | help
Now that GCC 2.7.1 is out, you should consider changing the way outb/inb
is used in inline asm constructs.  This is the right way to do it now:

__asm __volatile ("outb %b0,%w1" : : "a" (x), "Nd" (0));
__asm __volatile ("outb %b0,%w1" : : "a" (x), "Nd" (1000));
__asm __volatile ("outb %b0,%w1" : : "a" (x), "Nd" (port));

For older versions of GCC, simply leave out the `N'.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511151545.QAA08749>