patch-2.3.4 linux/arch/sparc64/lib/checksum.S

Next file: linux/arch/sparc64/lib/strlen_user.S
Previous file: linux/arch/sparc64/lib/blockops.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.3/linux/arch/sparc64/lib/checksum.S linux/arch/sparc64/lib/checksum.S
@@ -18,6 +18,7 @@
 #include <asm/ptrace.h>
 #include <asm/asi.h>
 #include <asm/page.h>
+#include <asm/asm_offsets.h>
 
 	/* The problem with the "add with carry" instructions on Ultra
 	 * are two fold.  Firstly, they cannot pair with jack shit,
@@ -265,10 +266,12 @@
 	.globl	cpc_handler
 cpc_handler:
 	ldx	[%sp + 0x7ff + 128], %g1
+	ldub	[%g6 + AOFF_task_tss + AOFF_thread_current_ds], %g3
 	sub	%g0, EFAULT, %g2
 	brnz,a,pt %g1, 1f
 	 st	%g2, [%g1]
 1:	sethi	%uhi(PAGE_OFFSET), %g4
+	wr	%g3, %g0, %asi
 	retl
 	 sllx	%g4, 32, %g4
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)