diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-12-03 10:51:08 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-12-03 10:51:08 -0500 |
| commit | 87fc5c686ef3db9e58d2fd65e1bcc368ee6b1b76 (patch) | |
| tree | 60356b82b5cb986a85bd4fde31805e4b96787bd5 | |
| parent | ae4806a38bc8db0b48e746445c41afd249568d68 (diff) | |
| parent | 3aaf33bebda8d4ffcc0fc8ef39e6c1ac68823b11 (diff) | |
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
| -rw-r--r-- | arch/arm/kernel/entry-header.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index 7f4d80c2db6b..0f07579af472 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
| @@ -300,7 +300,7 @@ | |||
| 300 | mov r2, sp | 300 | mov r2, sp |
| 301 | ldr r1, [r2, #\offset + S_PSR] @ get calling cpsr | 301 | ldr r1, [r2, #\offset + S_PSR] @ get calling cpsr |
| 302 | ldr lr, [r2, #\offset + S_PC]! @ get pc | 302 | ldr lr, [r2, #\offset + S_PC]! @ get pc |
| 303 | tst r1, #0xcf | 303 | tst r1, #PSR_I_BIT | 0x0f |
| 304 | bne 1f | 304 | bne 1f |
| 305 | msr spsr_cxsf, r1 @ save in spsr_svc | 305 | msr spsr_cxsf, r1 @ save in spsr_svc |
| 306 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K) | 306 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K) |
| @@ -332,7 +332,7 @@ | |||
| 332 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr | 332 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr |
| 333 | ldr lr, [sp, #\offset + S_PC] @ get pc | 333 | ldr lr, [sp, #\offset + S_PC] @ get pc |
| 334 | add sp, sp, #\offset + S_SP | 334 | add sp, sp, #\offset + S_SP |
| 335 | tst r1, #0xcf | 335 | tst r1, #PSR_I_BIT | 0x0f |
| 336 | bne 1f | 336 | bne 1f |
| 337 | msr spsr_cxsf, r1 @ save in spsr_svc | 337 | msr spsr_cxsf, r1 @ save in spsr_svc |
| 338 | 338 | ||
