patch-2.4.14 linux/arch/ppc/mm/4xx_mmu.c

Next file: linux/arch/ppc/mm/cachemap.c
Previous file: linux/arch/ppc/lib/string.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/arch/ppc/mm/4xx_mmu.c linux/arch/ppc/mm/4xx_mmu.c
@@ -69,15 +69,15 @@
 	 * be applied to every page which is a member of a given zone. At
 	 * present, we utilize only two of the 4xx's zones.
 	 * The zone index bits (of ZSEL) in the PTE are used for software
-	 * indicators, except the LSB.  For user access, zone 15 is used,
-	 * for kernel access, zone 14 is used.  We set all but zone 15
+	 * indicators, except the LSB.  For user access, zone 1 is used,
+	 * for kernel access, zone 0 is used.  We set all but zone 1
 	 * to zero, allowing only kernel access as indicated in the PTE.
-	 * For zone 15, we set a 01 binary (a value of 10 will not work)
+	 * For zone 1, we set a 01 binary (a value of 10 will not work)
 	 * to allow user access as indicated in the PTE.  This also allows
 	 * kernel access as indicated in the PTE.
 	 */
 
-        mtspr(SPRN_ZPR, 0x00000001);
+        mtspr(SPRN_ZPR, 0x10000000);
 
 	flush_instruction_cache();
 

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