Skip to content

Commit ed46092

Browse files
Rob HerringRussell King
authored andcommitted
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 <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent c2607f7 commit ed46092

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/kernel/entry-v7m.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222

2323
__invalid_entry:
2424
v7m_exception_entry
25+
#ifdef CONFIG_PRINTK
2526
adr r0, strerr
2627
mrs r1, ipsr
2728
mov r2, lr
2829
bl printk
30+
#endif
2931
mov r0, sp
3032
bl show_regs
3133
1: b 1b

0 commit comments

Comments
 (0)