]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fixes for CONFIG_PTE_64BIT for SMP support
authorKumar Gala <galak@kernel.crashing.org>
Wed, 16 Jul 2008 20:54:21 +0000 (15:54 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 24 Sep 2008 21:29:41 +0000 (16:29 -0500)
commit9bf2b5cdc5fe5e3136ceeecc85141765023ded6e
treee1e25d6aa5a18ca63314192173d93cc0d20ac066
parent0ba3418b8b1c85ee1771c63f1dd12041614e56ff
powerpc: Fixes for CONFIG_PTE_64BIT for SMP support

There are some minor issues with support 64-bit PTEs on a 32-bit processor
when dealing with SMP.

* We need to order the stores in set_pte_at to make sure the flag word
  is set second.
* Change pte_clear to use pte_update so only the flag word is cleared
* Added a WARN_ON to set_pte_at to ensure the pte isn't present for
  the 64-bit pte/SMP case (to ensure our assumption of this fact).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Becky Bruce <becky.bruce@freescale.com>
arch/powerpc/include/asm/highmem.h
arch/powerpc/include/asm/pgtable-ppc32.h