projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5f527
)
MIPS: Netlogic: Fix sign extension in PIC write
author
Jayachandran C
<
[email protected]
>
Mon, 10 Jun 2013 06:41:06 +0000
(06:41 +0000)
committer
Ralf Baechle
<
[email protected]
>
Thu, 13 Jun 2013 15:46:42 +0000
(17:46 +0200)
This does not cause a problem yet, but we do not want to write 1
to reserved bits.
Signed-off-by: Jayachandran C <
[email protected]
>
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5424/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/include/asm/netlogic/xlp-hal/pic.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/netlogic/xlp-hal/pic.h
b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
index a981f4681a154a53fb6fed0bffc788be83ed24a3..4b5108dfaa16ade2de259fab7c65e4cae9d05140 100644
(file)
--- 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);
}