From 13bad8da90ee2bb2f0e027400505cbe8dabe6226 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Thu, 22 Oct 2015 09:03:51 +1100 Subject: [PATCH] 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 --- arch/sh/kernel/cpu/sh5/unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5