]> Git Repo - linux.git/commitdiff
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
authorLinus Torvalds <[email protected]>
Sun, 3 Dec 2017 15:51:08 +0000 (10:51 -0500)
committerLinus Torvalds <[email protected]>
Sun, 3 Dec 2017 15:51:08 +0000 (10:51 -0500)
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

1  2 
arch/arm/kernel/entry-header.S

index 7f4d80c2db6bf128451c8390b7f9048ca413034c,e056c9a9aa9db178ba47ec421f2e8d1f53d3cab4..0f07579af472c8ec869c5d87fd8d1e105a24dcba
@@@ -1,4 -1,3 +1,4 @@@
 +/* SPDX-License-Identifier: GPL-2.0 */
  #include <linux/init.h>
  #include <linux/linkage.h>
  
        mov     r2, sp
        ldr     r1, [r2, #\offset + S_PSR]      @ get calling cpsr
        ldr     lr, [r2, #\offset + S_PC]!      @ get pc
-       tst     r1, #0xcf
+       tst     r1, #PSR_I_BIT | 0x0f
        bne     1f
        msr     spsr_cxsf, r1                   @ save in spsr_svc
  #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K)
        ldr     r1, [sp, #\offset + S_PSR]      @ get calling cpsr
        ldr     lr, [sp, #\offset + S_PC]       @ get pc
        add     sp, sp, #\offset + S_SP
-       tst     r1, #0xcf
+       tst     r1, #PSR_I_BIT | 0x0f
        bne     1f
        msr     spsr_cxsf, r1                   @ save in spsr_svc
  
This page took 0.062474 seconds and 4 git commands to generate.