[PATCH v2] ARM: Allow SMP_ON_UP to work with Thumb-2 kernels.

Nicolas Pitre nicolas.pitre at linaro.org
Mon Nov 29 22:44:56 EST 2010


On Mon, 29 Nov 2010, Dave Martin wrote:

> v2:
> 
> + ARM(	str	r4, [r0, r3]	)
> + THUMB(	add	r0, r0, r3	)
> +#ifdef __ARMEB__
> + THUMB(	mov	r4, r4, ror #16	)	@ Convert word order for big-endian.
> +#endif
> + THUMB(	strh	r4, [r0], #2	)	@ For Thumb-2, store as two halfwords
> + THUMB(	mov	r4, r4, lsr #16	)	@ to be robust against misaligned r3.
> + THUMB(	strh	r4, [r0]	)	@ NOTE: currently assumes little-endian.

That comment above is now obsolete.

Otherwise:

Acked-by: Nicolas Pitre <nicolas.pitre at linaro.org>


Nicolas



More information about the linux-arm-kernel mailing list