[POWERPC] Only export __mtdcr/__mfdcr if CONFIG_PPC_DCR is set
authorKumar Gala <galak@kernel.crashing.org>
Mon, 11 Dec 2006 05:15:47 +0000 (23:15 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 11 Dec 2006 05:15:47 +0000 (23:15 -0600)
commit45d8e7aaf47668550fdb6c2d3abbe42f48a76df2
tree6884852ff83c8c8b7d09883783587e1db43ca9d4
parentc99767974ebd2a719d849fdeaaa1674456f5283f
[POWERPC] Only export __mtdcr/__mfdcr if CONFIG_PPC_DCR is set

On 85xx we don't build in dcr support because the core doesn't implement the
instructions.  This caused problems when building an 85xx kernel.  Additionally
made it so we only build __mtdcr/__mfdcr if we are CONFIG_PPC_DCR_NATIVE.

The 85xx build issue wasPointed out by Dai Haruki.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/sysdev/Makefile
include/asm-powerpc/dcr-native.h
include/asm-powerpc/dcr.h
include/asm-ppc/reg_booke.h