Skip to content

Commit 87fc5c6

Browse files
committed
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fix from Russell King: "Just one fix this time around, for the late commit in the merge window that triggered a problem with qemu. Qemu is apparently also going to receive a fix for the discovered issue" * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: avoid faulting on qemu
2 parents ae4806a + 3aaf33b commit 87fc5c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/kernel/entry-header.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
mov r2, sp
301301
ldr r1, [r2, #\offset + S_PSR] @ get calling cpsr
302302
ldr lr, [r2, #\offset + S_PC]! @ get pc
303-
tst r1, #0xcf
303+
tst r1, #PSR_I_BIT | 0x0f
304304
bne 1f
305305
msr spsr_cxsf, r1 @ save in spsr_svc
306306
#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K)
@@ -332,7 +332,7 @@
332332
ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr
333333
ldr lr, [sp, #\offset + S_PC] @ get pc
334334
add sp, sp, #\offset + S_SP
335-
tst r1, #0xcf
335+
tst r1, #PSR_I_BIT | 0x0f
336336
bne 1f
337337
msr spsr_cxsf, r1 @ save in spsr_svc
338338

0 commit comments

Comments
 (0)