Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1337379
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 |
| Date | 2016-02-18 15:10 +0100 |
| Message-ID | <r3xrm-6Oj-37@gated-at.bofh.it> (permalink) |
| References | <r3xrj-6Oj-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
When configuring the kernel for big-endian, we set either BE-8 or BE-32 based on the CPU architecture level. Until linux-4.4, we did not have any ARMv7-M platform allowing big-endian builds, but now i.MX/Vybrid is in that category, adn we get a build error because of this: arch/arm/kernel/module-plts.c: In function 'get_module_plt': arch/arm/kernel/module-plts.c:60:46: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration] This comes down to picking the wrong default, ARMv7-M uses BE8 like ARMv7-A does. Changing the default gets the kernel to compile and presumably works. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 55347662e5ed..ff1637365494 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -723,7 +723,7 @@ config CPU_BIG_ENDIAN config CPU_ENDIAN_BE8 bool depends on CPU_BIG_ENDIAN - default CPU_V6 || CPU_V6K || CPU_V7 + default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M help Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors. -- 2.7.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Arnd Bergmann <arnd@arndb.de> - 2016-02-18 15:10 +0100
Re: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-18 17:10 +0100
Re: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Arnd Bergmann <arnd@arndb.de> - 2016-02-18 17:20 +0100
Re: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Vladimir Murzin <vladimir.murzin@arm.com> - 2016-02-19 09:50 +0100
Re: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Arnd Bergmann <arnd@arndb.de> - 2016-02-19 11:20 +0100
csiph-web