patch-2.3.39 linux/arch/sparc/lib/copy_user.S

Next file: linux/arch/sparc/mm/asyncd.c
Previous file: linux/arch/sparc/kernel/wuf.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/arch/sparc/lib/copy_user.S linux/arch/sparc/lib/copy_user.S
@@ -14,6 +14,7 @@
 #include <asm/cprefix.h>
 #include <asm/ptrace.h>
 #include <asm/asmmacro.h>
+#include <asm/page.h>
 
 #define EX(x,y,a,b,z) 				\
 98: 	x,y;					\
@@ -355,7 +356,7 @@
 97:
 	mov	%o2, %g3
 fixupretl:
-	GET_PAGE_OFFSET(g1)
+	sethi   %hi(PAGE_OFFSET), %g1
 	cmp	%o0, %g1
 	blu	1f
 	 cmp	%o1, %g1

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