[PATCH 5/6] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq

Shilimkar, Santosh santosh.shilimkar at ti.com
Fri Aug 13 05:04:09 EDT 2010


> -----Original Message-----
> From: linux-omap-owner at vger.kernel.org [mailto:linux-omap-
> owner at vger.kernel.org] On Behalf Of Tony Lindgren
> Sent: Friday, August 13, 2010 1:32 PM
> To: linux-arm-kernel at lists.infradead.org
> Cc: linux-omap at vger.kernel.org
> Subject: [PATCH 5/6] omap: Use CONFIG_SMP for test_for_ipi and
> test_for_ltirq
> 
> Otherwise we get the following error when enabling CONFIG_SMP
> for omap3_defconfig:
> 
> arch/arm/kernel/entry-armv.S: Assembler messages:
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi
> r0,r6,r5,lr'
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq
> r0,r6,r5,lr'
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi
> r0,r6,r5,lr'
> arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq
> r0,r6,r5,lr'
> 
> Signed-off-by: Tony Lindgren <tony at atomide.com>
> ---
This is same with omap_4430sdp_defconfig.
With this patch build is working patch now.
 
Acked-by: Santosh Shilimkar <santosh.shilimkar at ti.com>

>  arch/arm/mach-omap2/include/mach/entry-macro.S |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/include/mach/entry-macro.S
> b/arch/arm/mach-omap2/include/mach/entry-macro.S
> index 50fd749..06e64e1 100644
> --- a/arch/arm/mach-omap2/include/mach/entry-macro.S
> +++ b/arch/arm/mach-omap2/include/mach/entry-macro.S
> @@ -177,7 +177,10 @@ omap_irq_base:	.word	0
>  		cmpne   \irqnr, \tmp
>  		cmpcs   \irqnr, \irqnr
>  		.endm
> +#endif
> +#endif	/* MULTI_OMAP2 */
> 
> +#ifdef CONFIG_SMP
>  		/* We assume that irqstat (the raw value of the IRQ
> acknowledge
>  		 * register) is preserved from the macro above.
>  		 * If there is an IPI, we immediately signal end of interrupt
> @@ -205,8 +208,7 @@ omap_irq_base:	.word	0
>  		streq	\irqstat, [\base, #GIC_CPU_EOI]
>  		cmp	\tmp, #0
>  		.endm
> -#endif
> -#endif	/* MULTI_OMAP2 */
> +#endif	/* CONFIG_SMP */
> 
>  		.macro	irq_prio_table
>  		.endm
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the linux-arm-kernel mailing list