powerpc: Modify some ppc_asm.h macros to accomodate 64-bits Book3E
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 23 Jul 2009 23:15:20 +0000 (23:15 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:12:40 +0000 (10:12 +1000)
commit44c58ccc8dc25f78a4f641901f17092c93dd0458
treeb995a96edcc23c509580751cc923a161e969c1c8
parenta245067e204f69c69abf92d94fc45ec65bf1f07e
powerpc: Modify some ppc_asm.h macros to accomodate 64-bits Book3E

The way I intend to use tophys/tovirt on 64-bit BookE is different
from the "trick" that we currently play for 32-bit BookE so change
the condition of definition of these macros to make it so.

Also, make sure we only use rfid and mtmsrd instead of rfi and mtmsr
for 64-bit server processors, not all 64-bit processors.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/ppc_asm.h