summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 16:58:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 16:58:46 +0000
commitd89da6eca79c10cf7540450f842090a4e0618142 (patch)
tree8cfbe6a01eb6425d6cc5d70a2a9c9c6829e0cf91
parent2008-02-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-d89da6eca79c10cf7540450f842090a4e0618142.tar.bz2
2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1277/networking * libnetworking/netinet/in_cksum_i386.h: Use q instead of r in constraint for assembly language. This restricts the register choice to the a-d registers.
-rw-r--r--cpukit/ChangeLog7
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_i386.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 6c54205598..c95634e04e 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1277/networking
+ * libnetworking/netinet/in_cksum_i386.h: Use q instead of r in
+ constraint for assembly language. This restricts the register choice
+ to the a-d registers.
+
2008-02-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/Makefile.am: Remove these. They were proposed but never
diff --git a/cpukit/libnetworking/netinet/in_cksum_i386.h b/cpukit/libnetworking/netinet/in_cksum_i386.h
index a64bd57832..1c287d84b8 100644
--- a/cpukit/libnetworking/netinet/in_cksum_i386.h
+++ b/cpukit/libnetworking/netinet/in_cksum_i386.h
@@ -24,7 +24,7 @@
#define ADDC(n) __asm__ volatile \
("adcl " #n "(%2), %0" : "=r" (sum) : "0" (sum), "r" (w))
#define LOAD(n) __asm__ volatile \
- ("movb " #n "(%1), %0" : "=r" (junk) : "r" (w))
+ ("movb " #n "(%1), %0" : "=q" (junk) : "r" (w))
#define MOP __asm__ volatile \
("adcl $0, %0" : "=r" (sum) : "0" (sum))