]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: fix local_save_flags
authorVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 20:27:25 +0000 (13:27 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 21:48:25 +0000 (14:48 -0700)
commit6558bd75647458db7352e1148f3e236d98135dea
treeec49e6b6a6ab8aafab490a5074363e294b183f31
parent38a239f0ed1d4a7865178e907479a3753c9c8b31
ARCv2: fix local_save_flags

Commit aabcef1104bb1a ("ARCv2: Enable LOCKDEP"), changed
local_save_flags() to not return raw STATUS32 but encoded in the form
such that it could be fed directly to CLRI/SETI instructions.
However the STATUS32.E[] was not captured correctly as it corresponds to
bits [4:1] in the register and not [3:0]

Fixes: aabcef1104bb1a ("ARCv2: Enable LOCKDEP")
Cc: Evgeny Voevodin <evgeny.voevodin@intel.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/irqflags-arcv2.h