patch-2.1.110 linux/arch/arm/mm/proc-arm6,7.S

Next file: linux/arch/arm/vmlinux-armo.lds
Previous file: linux/arch/arm/mm/mm-vnc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/arch/arm/mm/proc-arm6,7.S linux/arch/arm/mm/proc-arm6,7.S
@@ -347,12 +347,11 @@
  *
  * Purpose : Set a PMD and flush it out of any WB cache
  */
-_arm6_set_pmd:	and	r2, r1, #3
-		teq	r2, #2
-		andeq	r2, r1, #8
-		orreq	r1, r1, r2, lsl #1		@ Updatable = Cachable
+_arm6_set_pmd:	and	r2, r1, #11
 		teq	r2, #1
-		orreq	r1, r1, #16			@ Updatable = 1 if Page table
+		teqne	r2, #9
+		teqne	r2, #10
+		orreq	r1, r1, #16			@ Updatable = 1 if Page table/Cacheable section
 		str	r1, [r0]
 		mov	pc, lr
 
@@ -364,7 +363,8 @@
  *
  * Purpose : Set a PMD and flush it out of any WB cache
  */
-_arm7_set_pmd:	orr	r1, r1, #16			@ Updatable bit is always set on ARM7
+_arm7_set_pmd:	tst	r1, #3
+		orrne	r1, r1, #16			@ Updatable bit is always set on ARM7
 		str	r1, [r0]
 		mov	pc, lr
 

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