]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8221/1: PJ4: allow building in Thumb-2 mode
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 25 Nov 2014 12:31:46 +0000 (13:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Dec 2014 16:08:00 +0000 (16:08 +0000)
commit95150075207cf9fe4fead1d88762e579c8bbbd71
tree01c25f94a5f08fb5502b0fbe0c71fd0cf1ed1a41
parentb804daf482f3fc37aafad88ec2a748cb81c22b7a
ARM: 8221/1: PJ4: allow building in Thumb-2 mode

Two files that get included when building the multi_v7_defconfig target
fail to build when selecting THUMB2_KERNEL for this configuration.

In both cases, we can just build the file as ARM code, as none of its
symbols are exported to modules, so there are no interworking concerns.
In the iwmmxt.S case, add ENDPROC() declarations so the symbols are
annotated as functions, resulting in the linker to emit the appropriate
mode switches.

Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/Makefile
arch/arm/kernel/iwmmxt.S