提交 349a9f0c 编写于 作者: Y Yang Yingliang 提交者: Xie XiuQi

arm64: nmi: fix using wrong shift to set priority

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

We used wrong shift to set the priority of NMI.

Fixes: dec86aedbc8b("arm64: Add support for on-demand backtrace of other CPUs")
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 3d58e6ec
...@@ -1087,7 +1087,7 @@ void ipi_set_nmi_prio(void __iomem *base, u8 prio) ...@@ -1087,7 +1087,7 @@ void ipi_set_nmi_prio(void __iomem *base, u8 prio)
/* clean old priority */ /* clean old priority */
prios &= ~(0xff << shift); prios &= ~(0xff << shift);
/* set new priority*/ /* set new priority*/
prios |= (prio << offset); prios |= (prio << shift);
writel_relaxed(prios, base + GICR_IPRIORITYR0 + offset); writel_relaxed(prios, base + GICR_IPRIORITYR0 + offset);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册