patch-2.4.19 linux-2.4.19/arch/ppc/mm/pgtable.c
Next file: linux-2.4.19/arch/ppc/mm/ppc_mmu.c
Previous file: linux-2.4.19/arch/ppc/mm/init.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/ppc/mm/pgtable.c
- Orig date:
Mon Feb 25 11:37:55 2002
diff -urN linux-2.4.18/arch/ppc/mm/pgtable.c linux-2.4.19/arch/ppc/mm/pgtable.c
@@ -275,17 +275,17 @@
f = _PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_SHARED;
#if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
/* Allows stub to set breakpoints everywhere */
- f |= _PAGE_RW | _PAGE_DIRTY;
-#else
+ f |= _PAGE_WRENABLE;
+#else /* !CONFIG_KGDB && !CONFIG_XMON */
if ((char *) v < _stext || (char *) v >= etext)
- f |= _PAGE_RW | _PAGE_DIRTY;
+ f |= _PAGE_WRENABLE;
#ifdef CONFIG_PPC_STD_MMU
else
/* On the powerpc (not all), no user access
forces R/W kernel access */
f |= _PAGE_USER;
#endif /* CONFIG_PPC_STD_MMU */
-#endif /* CONFIG_KGDB */
+#endif /* CONFIG_KGDB || CONFIG_XMON */
map_page(v, p, f);
v += PAGE_SIZE;
p += PAGE_SIZE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)