patch-2.4.3 linux/arch/arm/kernel/entry-common.S
Next file: linux/arch/arm/kernel/sys_arm.c
Previous file: linux/arch/arm/kernel/entry-armv.S
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Tue Mar  6 19:44:35 2001
-  Orig file: 
v2.4.2/linux/arch/arm/kernel/entry-common.S
-  Orig date: 
Mon Sep 18 15:15:25 2000
diff -u --recursive --new-file v2.4.2/linux/arch/arm/kernel/entry-common.S linux/arch/arm/kernel/entry-common.S
@@ -215,7 +215,7 @@
 sys_mmap2:
 #if PAGE_SHIFT > 12
 		tst	r5, #PGOFF_MASK
-		moveq	r5, r5, lsr #PGOFF_SHIFT
+		moveq	r5, r5, lsr #PAGE_SHIFT - 12
 		streq	r5, [sp, #4]
 		beq	do_mmap2
 		mov	r0, #-EINVAL
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)