aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2017-10-20 18:20:17 -0400
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2017-10-20 18:20:17 -0400
commit9c323bff13f92832e03657cabdd70d731408d621 (patch)
tree7dc45dcef880b55493a9ea8b69799ccf70a58b72 /arch/arm/boot
parentMerge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm... (diff)
parentARM: 8704/1: semihosting: use proper instruction on v7m processors (diff)
downloadlinux-9c323bff13f92832e03657cabdd70d731408d621.tar.gz
linux-9c323bff13f92832e03657cabdd70d731408d621.tar.bz2
linux-9c323bff13f92832e03657cabdd70d731408d621.zip
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Three fixes this time around: - ensure sparse realises that we're building for a 32-bit arch on 64-bit hosts. - use the correct instruction for semihosting on v7m (nommu) CPUs. - reserve address 0 to prevent the first page of memory being used on nommu systems" * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 8704/1: semihosting: use proper instruction on v7m processors ARM: 8701/1: fix sparse flags for build on 64bit machines ARM: 8700/1: nommu: always reserve address 0 away
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/compressed/debug.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/debug.S b/arch/arm/boot/compressed/debug.S
index 5392ee63338f..8f6e37177de1 100644
--- a/arch/arm/boot/compressed/debug.S
+++ b/arch/arm/boot/compressed/debug.S
@@ -23,7 +23,11 @@ ENTRY(putc)
strb r0, [r1]
mov r0, #0x03 @ SYS_WRITEC
ARM( svc #0x123456 )
+#ifdef CONFIG_CPU_V7M
+ THUMB( bkpt #0xab )
+#else
THUMB( svc #0xab )
+#endif
mov pc, lr
.align 2
1: .word _GLOBAL_OFFSET_TABLE_ - .