ARM: 8295/1: fix v7M build for !CONFIG_PRINTK

Minimal builds for v7M are broken when printk is disabled. The caller is
assembly so add the necessary ifdef around the call.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Rob Herring 2015-01-28 16:05:04 +01:00 committed by Russell King
parent c2607f74aa
commit ed46092518
1 changed files with 2 additions and 0 deletions

View File

@ -22,10 +22,12 @@
__invalid_entry: __invalid_entry:
v7m_exception_entry v7m_exception_entry
#ifdef CONFIG_PRINTK
adr r0, strerr adr r0, strerr
mrs r1, ipsr mrs r1, ipsr
mov r2, lr mov r2, lr
bl printk bl printk
#endif
mov r0, sp mov r0, sp
bl show_regs bl show_regs
1: b 1b 1: b 1b