linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* _PAGE_HWWRITE missing in pte_mkdirty()?
@ 2003-04-25 10:33 Joakim Tjernlund
  2003-04-25 14:56 ` Dan Malek
  0 siblings, 1 reply; 5+ messages in thread
From: Joakim Tjernlund @ 2003-04-25 10:33 UTC (permalink / raw)
  To: Linuxppc-Dev@Lists. Linuxppc. Org


Hi

I noticed that pte_mkdirty() does not set the change bit(HWWRITE) when
dirtying a page. I think it should. Is there a reason why it doesn't?

Patch below which adds HWWRITE to pte_mkdirty()

 Jocke

Index: include/asm-ppc/pgtable.h
===================================================================
RCS file: /home/cvsadmin/cvsroot/kernel/linuxppc/include/asm-ppc/pgtable.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pgtable.h
--- include/asm-ppc/pgtable.h	1 Nov 2002 13:44:24 -0000	1.1.1.1
+++ include/asm-ppc/pgtable.h	25 Apr 2003 09:20:47 -0000
@@ -526,7 +526,7 @@
 static inline pte_t pte_mkwrite(pte_t pte) {
 	pte_val(pte) |= _PAGE_RW; return pte; }
 static inline pte_t pte_mkdirty(pte_t pte) {
-	pte_val(pte) |= _PAGE_DIRTY; return pte; }
+	pte_val(pte) |= _PAGE_DIRTY  | _PAGE_HWWRITE; return pte; }
 static inline pte_t pte_mkyoung(pte_t pte) {
 	pte_val(pte) |= _PAGE_ACCESSED; return pte; }


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-27  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-25 10:33 _PAGE_HWWRITE missing in pte_mkdirty()? Joakim Tjernlund
2003-04-25 14:56 ` Dan Malek
2003-04-25 15:34   ` Joakim Tjernlund
2003-04-26 23:51     ` Paul Mackerras
2003-04-27  9:31       ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).