Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd5d38b0 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARCv2: fix local_save_flags



Commit d9676fa1 ("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: d9676fa1 ("ARCv2: Enable LOCKDEP")
Cc: Evgeny Voevodin <evgeny.voevodin@intel.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 3528f84f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ static inline long arch_local_save_flags(void)
	 */
	temp = (1 << 5) |
		((!!(temp & STATUS_IE_MASK)) << CLRI_STATUS_IE_BIT) |
		(temp & CLRI_STATUS_E_MASK);
		((temp >> 1) & CLRI_STATUS_E_MASK);
	return temp;
}