_PAGE_HWWRITE missing in pte_mkdirty()?

Joakim Tjernlund joakim.tjernlund at lumentis.se
Sat Apr 26 01:34:22 EST 2003


> Joakim Tjernlund wrote:
>
> > 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?
>
> A dirty page doesn't necessarily indicate a write enabled page.  Setting
> _PAGE_HWWRITE without _PAGE_RW is an error.  On PPC, RW and DIRTY are
> software status bits, HWWRITE actually contols write access.

OK, I wasn't aware that you can have dirty pages without _PAGE_RW.

   Jocke


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





More information about the Linuxppc-dev mailing list