Skip to content

Commit d64b212

Browse files
arndbolofj
authored andcommitted
ARM: davinci: fix sleep.S build error on ARMv4
When building a multiplatform kernel that includes armv4 support, the default target CPU does not support the blx instruction, which leads to a build failure: arch/arm/mach-davinci/sleep.S: Assembler messages: arch/arm/mach-davinci/sleep.S:56: Error: selected processor does not support `blx ip' in ARM mode Add a .arch statement in the sources to make this file build. Link: https://lore.kernel.org/r/[email protected] Acked-by: Sekhar Nori <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent ae00fcc commit d64b212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mach-davinci/sleep.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#define DEEPSLEEP_SLEEPENABLE_BIT BIT(31)
2525

2626
.text
27+
.arch armv5te
2728
/*
2829
* Move DaVinci into deep sleep state
2930
*

0 commit comments

Comments
 (0)