Skip to content

Commit

Permalink
ARM: 8295/1: fix v7M build for !CONFIG_PRINTK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Russell King committed Jan 29, 2015
1 parent c2607f7 commit ed46092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/kernel/entry-v7m.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@

__invalid_entry:
v7m_exception_entry
#ifdef CONFIG_PRINTK
adr r0, strerr
mrs r1, ipsr
mov r2, lr
bl printk
#endif
mov r0, sp
bl show_regs
1: b 1b
Expand Down

0 comments on commit ed46092

Please sign in to comment.