[PATCH] powerpc: Fix invalid page flags in create TLB CAM path for PTE_64BIT

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Sep 24 07:59:17 EST 2010


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.




More information about the Linuxppc-dev mailing list