• Kumar Gala's avatar
    [PATCH] ppc32: Fix pte_update for 64-bit PTEs · 7a1e3350
    Kumar Gala authored
    While the existing pte_update code handled atomically modifying a 64-bit PTE,
    it did not return all 64-bits of the PTE before it was modified.  This causes
    problems in some places that expect the full PTE to be returned, like
    ptep_get_and_clear().
    
    Created a new pte_update function that is conditional on CONFIG_PTE_64BIT.  It
    atomically reads the low PTE word which all PTE flags are required to be in
    and returns a premodified full 64-bit PTE.
    
    Since we now have an explicit 64-bit PTE version of pte_update we can also
    remove the hack that existed to get the low PTE word regardless of size.
    Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    7a1e3350
pgtable.h 28.4 KB