On Thu, 2010-09-23 at 15:33 -0500, Scott Wood wrote: > I don't see a generic accessor that can test PTE flags for user > access -- in the absence of one, I guess we need an ifdef here. Or at > least put in a comment so anyone who adds a userspace use knows they > need to fix it.
We could make up one in powerpc arch at least #define pte_user(val) ((val & _PAGE_USER) == _PAGE_USER) would do Cheers, Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev