diff options
author | Bernd Weiberg <bernd.weiberg@siemens.com> | 2015-09-04 05:03:03 -0400 |
---|---|---|
committer | Ley Foon Tan <lftan@opensource.altera.com> | 2015-09-07 13:32:27 -0400 |
commit | db5a7e55468147f28d1a408880564b61c542e4f8 (patch) | |
tree | c4763790616a76dc0e100c1474c81794e504492d /arch/nios2 | |
parent | 549a14c14b2f1868b81e5417a33b6d79e6da1d00 (diff) |
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/nios2')
-rw-r--r-- | arch/nios2/kernel/misaligned.c | 2 |
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) | |||
71 | u32 isn, addr, val; | 71 | u32 isn, addr, val; |
72 | int in_kernel; | 72 | int in_kernel; |
73 | u8 a, b, d0, d1, d2, d3; | 73 | u8 a, b, d0, d1, d2, d3; |
74 | u16 imm16; | 74 | s16 imm16; |
75 | unsigned int fault; | 75 | unsigned int fault; |
76 | 76 | ||
77 | /* back up one instruction */ | 77 | /* back up one instruction */ |