$NetBSD: patch-ao,v 1.1 2005/04/23 20:37:18 riz Exp $ --- src/sci.c.orig 1999-12-17 05:07:03.000000000 -0800 +++ src/sci.c 2005-04-14 11:25:05.000000000 -0700 @@ -98,7 +98,7 @@ "popl %%ecx\n\t" \ "popl %%ebx\n\t" \ "popl %%eax\n" \ - :"=dx" (dx), "=ah" (ah) : : "memory" ); + :"=d" (dx), "=a" (ah) : : "memory" ); *version = (int) dx; @@ -149,7 +149,7 @@ "popl %%ecx\n\t" \ "popl %%ebx\n\t" \ "popl %%eax\n" \ - :"=ah" (ah) : : "memory" ); + :"=a" (ah) : : "memory" ); return (int) (ah & 0xff); } @@ -173,8 +173,8 @@ "inb $0xb2,%%al\n\t" \ "popl %%edi\n\t" \ "popl %%esi\n" \ - :"=ax" (ax), "=bx" (bx), "=cx" (cx), "=dx" (dx) \ - :"bx" (bx), "cx" (cx) \ + :"=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) \ + :"b" (bx), "c" (cx) \ : "memory" ); reg->attribute = (ax & 0xff); @@ -205,8 +205,8 @@ "inb $0xb2,%%al\n\t" \ "popl %%edi\n\t" \ "popl %%esi\n" \ - :"=ax" (ax) \ - :"bx" (bx), "cx" (cx), "dx" (dx) \ + :"=a" (ax) \ + :"b" (bx), "c" (cx), "d" (dx) \ : "memory" ); reg->attribute = (ax & 0xff);