summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 16:58:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 16:58:16 +0000
commit1ac77e33a0059eced27f2953f2ff6c42c508aad3 (patch)
tree58e4103357183c55082bcd8af88808706da902d7
parentaa9826e56ce06e0ef05df2e2084a7db7458dc8de (diff)
2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1277/networking * netinet/in_cksum_i386.c: Use q instead of r in constraint for assembly language. This restricts the register choice to the a-d registers.
-rw-r--r--cpukit/libnetworking/ChangeLog7
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_i386.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index 9da87da96c..711bcf92b1 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1277/networking
+ * netinet/in_cksum_i386.c: Use q instead of r in constraint for
+ assembly language. This restricts the register choice to the a-d
+ registers.
+
2007-11-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/rtems_glue.c: Fix compilation error from incorrectly applied
diff --git a/cpukit/libnetworking/netinet/in_cksum_i386.c b/cpukit/libnetworking/netinet/in_cksum_i386.c
index a64bd57832..1c287d84b8 100644
--- a/cpukit/libnetworking/netinet/in_cksum_i386.c
+++ b/cpukit/libnetworking/netinet/in_cksum_i386.c
@@ -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))