pkgsrc/sysutils/toshutils/patches/patch-an
riz 3af222286d Adapt gcc asm constraints to work with gcc > 3. From a patch posted
on port-i386 by Kailash Sethuraman, with whitespace fix by me.

Fixes PR#25760 - Approved by jmcneill.
2005-04-23 20:37:18 +00:00

14 lines
462 B
Text

$NetBSD: patch-an,v 1.1 2005/04/23 20:37:18 riz Exp $
--- src/hci.c.orig 2005-04-14 10:44:42.000000000 -0700
+++ src/hci.c 2005-04-14 11:10:30.000000000 -0700
@@ -115,8 +115,8 @@
ax = 0x0000;
} else {
asm ("inb $0xb2,%%al\n" \
- :"=ax" (ax), "=bx" (bx), "=cx" (cx), "=dx" (dx) \
- :"ax" (ax), "bx" (bx), "cx" (cx), "dx" (dx) \
+ :"=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) \
+ :"a" (ax), "b" (bx), "c" (cx), "d" (dx) \
: "memory" );
}