mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 06:02:59 +00:00
Change outb() as per Bruce's instructions so that it doesn't explicitly
try to pass its argument in the ax register. Reviewed by: Submitted by:
This commit is contained in:
parent
2399a1589e
commit
f9f0c18d31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2028
@ -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.13 1994/08/02 07:38:43 davidg Exp $
|
||||
* $Id: cpufunc.h,v 1.14 1994/08/04 19:46:57 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -92,7 +92,7 @@ u_int_inb(u_int port)
|
||||
static inline void
|
||||
outb(u_int port, u_char data)
|
||||
{
|
||||
register u_char al asm("ax");
|
||||
u_char al;
|
||||
|
||||
al = data; /* help gcc-1.40's register allocator */
|
||||
__asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port));
|
||||
|
@ -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.13 1994/08/02 07:38:43 davidg Exp $
|
||||
* $Id: cpufunc.h,v 1.14 1994/08/04 19:46:57 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -92,7 +92,7 @@ u_int_inb(u_int port)
|
||||
static inline void
|
||||
outb(u_int port, u_char data)
|
||||
{
|
||||
register u_char al asm("ax");
|
||||
u_char al;
|
||||
|
||||
al = data; /* help gcc-1.40's register allocator */
|
||||
__asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port));
|
||||
|
Loading…
x
Reference in New Issue
Block a user