ARM: 7895/1: signal: fix armv7-m build issue in sigreturn_codes.S
authorVictor Kamensky <victor.kamensky@linaro.org>
Thu, 21 Nov 2013 06:17:03 +0000 (07:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 30 Nov 2013 22:21:00 +0000 (22:21 +0000)
commit50913336ef3c9270b5e2b44a5d81230d7db42fc5
treebba7eea0d1980d62872d267e312f5a41fa72b973
parent67130c5464f50428aea0b4526a6729d61f9a1d53
ARM: 7895/1: signal: fix armv7-m build issue in sigreturn_codes.S

After "ARM: signal: sigreturn_codes should be endian neutral to
work in BE8" commit, thumb only platforms, like armv7m, fails to
compile sigreturn_codes.S. The reason is that for such arch
values '.arm' directive and arm opcodes are not allowed.

Fix conditionally enables arm opcodes only if no CONFIG_CPU_THUMBONLY
defined and it uses .org instructions to keep sigreturn_codes
layout.

Suggested-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sigreturn_codes.S