projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549a14c
)
nios2: fixed variable imm16 to s16
author
Bernd Weiberg
<bernd.weiberg@siemens.com>
Fri, 4 Sep 2015 09:03:03 +0000
(17:03 +0800)
committer
Ley Foon Tan
<lftan@opensource.altera.com>
Mon, 7 Sep 2015 17:32:27 +0000
(
01:32
+0800)
Fxid variable imm16 to s16 instead of u16, offset might be negative.
Signed-off-by: Bernd Weiberg <bernd.weiberg@siemens.com>
Signed-off-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/misaligned.c
patch
|
blob
|
history
diff --git
a/arch/nios2/kernel/misaligned.c
b/arch/nios2/kernel/misaligned.c
index 4e5907a0cabe88d4a797b9cdbc0f0081392c62bd..89fe0b6ee339c1035c2aef555a98d4a5626b341a 100644
(file)
--- a/
arch/nios2/kernel/misaligned.c
+++ b/
arch/nios2/kernel/misaligned.c
@@
-71,7
+71,7
@@
asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause)
u32 isn, addr, val;
int in_kernel;
u8 a, b, d0, d1, d2, d3;
-
u
16 imm16;
+
s
16 imm16;
unsigned int fault;
/* back up one instruction */