diff options
author | Scott Wood <scottwood@freescale.com> | 2012-10-02 06:20:25 (GMT) |
---|---|---|
committer | Emil Medve <Emilian.Medve@Freescale.com> | 2013-03-21 18:42:17 (GMT) |
commit | b98eb0d5f9b63ff104f8e0f1f61e512a4bad07dc (patch) | |
tree | 005d4501faa7bbc464242eaca51c05712d09a942 | |
parent | 8b0b87f6b5f76c8d2b18c2f1c2e0dd7916862976 (diff) | |
download | linux-fsl-qoriq-b98eb0d5f9b63ff104f8e0f1f61e512a4bad07dc.tar.xz |
powerpc/fsl-booke: build e6500 on 64-bit only.
Fixes build break on 32-bit (undefined reference to
.setup_altivec_ivors). We don't support this anyway as it lacks thread,
tablewalk, and altivec support.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S b/arch/powerpc/kernel/cpu_setup_fsl_booke.S index 0b9af01..d8c7baf 100644 --- a/arch/powerpc/kernel/cpu_setup_fsl_booke.S +++ b/arch/powerpc/kernel/cpu_setup_fsl_booke.S @@ -53,6 +53,7 @@ _GLOBAL(__e500_dcache_setup) isync blr +#ifdef CONFIG_PPC_BOOK3E_64 _GLOBAL(__setup_cpu_e6500) mflr r6 #ifdef CONFIG_PPC64 @@ -61,6 +62,7 @@ _GLOBAL(__setup_cpu_e6500) bl __setup_cpu_e5500 mtlr r6 blr +#endif #ifdef CONFIG_PPC32 _GLOBAL(__setup_cpu_e200) diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index ae9f433..290e68f 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -2062,6 +2062,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .machine_check = machine_check_e500mc, .platform = "ppce5500", }, +#ifndef CONFIG_PPC32 { /* e6500 */ .pvr_mask = 0xffff0000, .pvr_value = 0x80400000, @@ -2077,12 +2078,11 @@ static struct cpu_spec __initdata cpu_specs[] = { .oprofile_cpu_type = "ppc/e6500", .oprofile_type = PPC_OPROFILE_FSL_EMB, .cpu_setup = __setup_cpu_e6500, -#ifndef CONFIG_PPC32 .cpu_restore = __restore_cpu_e6500, -#endif .machine_check = machine_check_e500mc, .platform = "ppce6500", }, +#endif #ifdef CONFIG_PPC32 { /* default match */ .pvr_mask = 0x00000000, |