提交 9f1f1e7b 编写于 作者: J Jayachandran C 提交者: Ralf Baechle

MIPS: Netlogic: Fix sign extension in PIC write

This does not cause a problem yet, but we do not want to write 1
to reserved bits.
Signed-off-by: NJayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5424/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 fd5f527c
......@@ -315,7 +315,7 @@ nlm_pic_send_ipi(uint64_t base, int hwt, int irq, int nmi)
{
uint64_t ipi;
ipi = (nmi << 31) | (irq << 20);
ipi = ((uint64_t)nmi << 31) | (irq << 20);
ipi |= ((hwt >> 4) << 16) | (1 << (hwt & 0xf)); /* cpuset and mask */
nlm_write_pic_reg(base, PIC_IPI_CTL, ipi);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册