From: Kumar Gala Date: Sat, 16 Apr 2005 22:24:20 +0000 (-0700) Subject: [PATCH] ppc32: Fix pte_update for 64-bit PTEs X-Git-Tag: v2.6.12-rc3~213 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a1e335085ead05da08f791340f58b493126894d;p=pandora-kernel.git [PATCH] ppc32: Fix pte_update for 64-bit PTEs 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: Kumar Gala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed