patch-2.1.79 linux/arch/alpha/lib/csum_ipv6_magic.S

Next file: linux/arch/i386/defconfig
Previous file: linux/arch/alpha/kernel/t2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/arch/alpha/lib/csum_ipv6_magic.S linux/arch/alpha/lib/csum_ipv6_magic.S
@@ -58,10 +58,14 @@
 	addq	$3,$1,$3	# .. e1 :
 	addq	$0,$3,$0	# e0    :
 	unop			#       :
-	extwl	$0,2,$1		# e0    :
+	extwl	$0,2,$1		# e0    : fold 18-bit value
 	zapnot	$0,3,$0		# .. e1 :
 	addq	$0,$1,$0	# e0    :
-	not	$0,$0		# e1    :
+	unop			#       :
+	extwl	$0,2,$1		# e0    : fold 17-bit value
+	zapnot	$0,3,$0		# .. e1 :
+	addq	$0,$1,$0	# e0    :
+	not	$0,$0		# e1    : and compliment.
 	zapnot	$0,3,$0		# e0    :
 	ret			# .. e1 :
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov