From: Martin Kepplinger Date: Wed, 21 Oct 2015 22:03:51 +0000 (+1100) Subject: arch/sh/kernel/cpu/sh5/unwind.c: use sign_extend64() for sign extension X-Git-Tag: KARO-TX6UL-2015-11-03~14^2~53 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=13bad8da90ee2bb2f0e027400505cbe8dabe6226;p=karo-tx-linux.git arch/sh/kernel/cpu/sh5/unwind.c: use sign_extend64() for sign extension Signed-off-by: Martin Kepplinger Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: George Spelvin Cc: Rasmus Villemoes Cc: Maxime Coquelin Cc: Denys Vlasenko Cc: Yury Norov Cc: Linus Torvalds s.com> Signed-off-by: Andrew Morton --- diff --git a/arch/sh/kernel/cpu/sh5/unwind.c b/arch/sh/kernel/cpu/sh5/unwind.c index 10aed41757fc..3a4fed406fc6 100644 --- a/arch/sh/kernel/cpu/sh5/unwind.c +++ b/arch/sh/kernel/cpu/sh5/unwind.c @@ -159,7 +159,7 @@ static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, /* Sign extend */ regcache[dest] = - ((((s64)(u64)op >> 10) & 0xffff) << 54) >> 54; + sign_extend64((((u64)op >> 10) & 0xffff), 9); break; case (0xd0 >> 2): /* addi */ case (0xd4 >> 2): /* addi.l */