summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBernd Weiberg <bernd.weiberg@siemens.com>2015-09-04 11:03:03 +0200
committerLey Foon Tan <lftan@opensource.altera.com>2015-09-07 19:32:27 +0200
commitdb5a7e55468147f28d1a408880564b61c542e4f8 (patch)
treec4763790616a76dc0e100c1474c81794e504492d /arch
parentnios2/time: Migrate to new 'set-state' interface (diff)
downloadlinux-db5a7e55468147f28d1a408880564b61c542e4f8.tar.xz
linux-db5a7e55468147f28d1a408880564b61c542e4f8.zip
nios2: fixed variable imm16 to s16
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/nios2/kernel/misaligned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/kernel/misaligned.c b/arch/nios2/kernel/misaligned.c
index 4e5907a0cabe..89fe0b6ee339 100644
--- 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;
- u16 imm16;
+ s16 imm16;
unsigned int fault;
/* back up one instruction */