Skip to content

Commit b2bf482

Browse files
murzinvRussell King
authored andcommitted
ARM: 8605/1: V7M: fix notrace variant of save_and_disable_irqs
Commit 8e43a90 "ARM: 7325/1: fix v7 boot with lockdep enabled" introduced notrace variant of save_and_disable_irqs to balance notrace variant of restore_irqs; however V7M case has been missed. It was not noticed because cache-v7.S the only place where notrace variant is used. So fix it, since we are going to extend V7 cache routines to handle V7M case too. Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Tested-by: Andras Szemzo <sza@esh.hu> Tested-by: Joachim Eastwood <manabian@gmail.com> Tested-by: Alexandre TORGUE <alexandre.torgue@st.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent f5a5c89 commit b2bf482

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/arm/include/asm/assembler.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@
159159
.endm
160160

161161
.macro save_and_disable_irqs_notrace, oldcpsr
162+
#ifdef CONFIG_CPU_V7M
163+
mrs \oldcpsr, primask
164+
#else
162165
mrs \oldcpsr, cpsr
166+
#endif
163167
disable_irq_notrace
164168
.endm
165169

0 commit comments

Comments
 (0)