summaryrefslogtreecommitdiff
path: root/sysutils/toshutils/patches
diff options
context:
space:
mode:
authorriz <riz@pkgsrc.org>2005-04-23 20:37:18 +0000
committerriz <riz@pkgsrc.org>2005-04-23 20:37:18 +0000
commit51715e02d3c323ad45a8a707279ddf26d3301026 (patch)
tree9a100d9f9750f4264674b84302b4168c7cfa2b3b /sysutils/toshutils/patches
parentcb06c459ce0c68371c99cf6b4ccf266d240eaeb6 (diff)
downloadpkgsrc-51715e02d3c323ad45a8a707279ddf26d3301026.tar.gz
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.
Diffstat (limited to 'sysutils/toshutils/patches')
-rw-r--r--sysutils/toshutils/patches/patch-an14
-rw-r--r--sysutils/toshutils/patches/patch-ao43
2 files changed, 57 insertions, 0 deletions
diff --git a/sysutils/toshutils/patches/patch-an b/sysutils/toshutils/patches/patch-an
new file mode 100644
index 00000000000..c72c038a700
--- /dev/null
+++ b/sysutils/toshutils/patches/patch-an
@@ -0,0 +1,14 @@
+$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" );
+ }
+
diff --git a/sysutils/toshutils/patches/patch-ao b/sysutils/toshutils/patches/patch-ao
new file mode 100644
index 00000000000..2a54606834c
--- /dev/null
+++ b/sysutils/toshutils/patches/patch-ao
@@ -0,0 +1,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);