summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/netlogic/xlp-hal
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-06-10 06:41:06 +0000
committerRalf Baechle <ralf@linux-mips.org>2013-06-13 17:46:42 +0200
commit9f1f1e7b8b76d8503673a3777b3ee743d8c50e13 (patch)
tree315be7b2e7c634bdc770890b98dea9d968cb9a3c /arch/mips/include/asm/netlogic/xlp-hal
parentfd5f527cc58f7112f0d2c3cf2c29ae3ea5417de5 (diff)
downloadtalos-op-linux-9f1f1e7b8b76d8503673a3777b3ee743d8c50e13.tar.gz
talos-op-linux-9f1f1e7b8b76d8503673a3777b3ee743d8c50e13.zip
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: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5424/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal')
-rw-r--r--arch/mips/include/asm/netlogic/xlp-hal/pic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/pic.h b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
index a981f4681a15..4b5108dfaa16 100644
--- a/arch/mips/include/asm/netlogic/xlp-hal/pic.h
+++ b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
@@ -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);
}
OpenPOWER on IntegriCloud