summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))