1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
$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);
|