nios2: fixed variable imm16 to s16
authorBernd Weiberg <bernd.weiberg@siemens.com>
Fri, 4 Sep 2015 09:03:03 +0000 (17:03 +0800)
committerLey 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

index 4e5907a0cabe88d4a797b9cdbc0f0081392c62bd..89fe0b6ee339c1035c2aef555a98d4a5626b341a 100644 (file)
@@ -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 */
This page took 0.042325 seconds and 5 git commands to generate.