diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-03-10 21:46:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-03-10 21:46:12 +0000 |
commit | c995cd66895d082de3b14eb8a11fd0b1b900a010 (patch) | |
tree | fa845d283d6ca37306aee40697785dbaa67a8ad9 /cpukit/libnetworking/netinet/in_cksum_m68k.h | |
parent | Add NOP after writing the CACR is there to address the issue (diff) | |
download | rtems-c995cd66895d082de3b14eb8a11fd0b1b900a010.tar.bz2 |
2005-03-10 Joel Sherrill <joel@OARcorp.com>
* libnetworking/netinet/in_cksum_m68k.h: Change back to lcsum[12]_lbl
since my fix did not fix all issues.
Diffstat (limited to 'cpukit/libnetworking/netinet/in_cksum_m68k.h')
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum_m68k.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libnetworking/netinet/in_cksum_m68k.h b/cpukit/libnetworking/netinet/in_cksum_m68k.h index 0cb937a2a0..58199c3adf 100644 --- a/cpukit/libnetworking/netinet/in_cksum_m68k.h +++ b/cpukit/libnetworking/netinet/in_cksum_m68k.h @@ -125,8 +125,8 @@ in_cksum(m, len) #else "andi #0xf,%%cc | Clear X (extended carry flag)\n\t" #endif - "jmp %%pc@(2f-.-2:b,%3) | Jump into loop\n" - "1: | Begin inner loop...\n\t" + "jmp %%pc@(lcsum2_lbl-.-2:b,%3) | Jump into loop\n" + "lcsum1_lbl: | Begin inner loop...\n\t" "movel %1@+,%3 | 0: Fetch 32-bit word\n\t" "addxl %3,%0 | Add word + previous carry\n\t" "movel %1@+,%3 | 1: Fetch 32-bit word\n\t" @@ -159,12 +159,12 @@ in_cksum(m, len) "addxl %3,%0 | Add word + previous carry\n\t" "movel %1@+,%3 | F: Fetch 32-bit word\n\t" "addxl %3,%0 | Add word + previous carry\n" - "2: | End of unrolled loop\n\t" + "lcsum2_lbl: | End of unrolled loop\n\t" #if IS_COLDFIRE "moveq #0,%3 | Add in last carry\n\t" "addxl %3,%0 |\n\t" "subql #1,%2 | Update loop count\n\t" - "bplb 1f | Loop (with X clear) if not done\n\t" + "bplb lcsum1_lbl | Loop (with X clear) if not done\n\t" "movel #0xffff,%2 | Get word mask\n\t" "movel %0,%3 | Fold 32 bit sum to 16 bits\n\t" "swap %3 |\n\t" @@ -176,7 +176,7 @@ in_cksum(m, len) "addl %3,%0 |\n\t" "andl %2,%0 | Mask to 16-bit sum\n\t" #else - "dbf %2,1 | (NB- dbf doesn't affect X)\n\t" + "dbf %2,lcsum1_lbl | (NB- dbf doesn't affect X)\n\t" "movel %0,%3 | Fold 32 bit sum to 16 bits\n\t" "swap %3 | (NB- swap doesn't affect X)\n\t" "addxw %3,%0 |\n\t" |