Skip to content

Commit

Permalink
ARCv2: intc: Use kflag if STATUS32.IE must be reset
Browse files Browse the repository at this point in the history
In the end of "arc_init_IRQ" STATUS32.IE flag is going to be affected by
"flag" instruction but "flag" never touches IE flag on ARCv2. So "kflag"
instruction must be used instead of "flag".

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Cc: stable@vger.kernel.org #4.2+
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Yuriy Kolerov authored and Vineet Gupta committed Sep 30, 2016
1 parent 99a2ca6 commit bc0c7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arc/kernel/intc-arcv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void arc_init_IRQ(void)
tmp = read_aux_reg(0xa);
tmp |= STATUS_AD_MASK | (irq_prio << 1);
tmp &= ~STATUS_IE_MASK;
asm volatile("flag %0 \n"::"r"(tmp));
asm volatile("kflag %0 \n"::"r"(tmp));
}

static void arcv2_irq_mask(struct irq_data *data)
Expand Down

0 comments on commit bc0c7ec

Please sign in to comment.