From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932174AbbJPJMY (ORCPT ); Fri, 16 Oct 2015 05:12:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44002 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbbJPJJG (ORCPT ); Fri, 16 Oct 2015 05:09:06 -0400 From: Martin Kepplinger To: mingo@kernel.org, akpm@linux-foundation.org, linux@horizon.com, linux@rasmusvillemoes.dk, maxime.coquelin@st.com, dvlasenk@redhat.com, yury.norov@gmail.com, torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Martin Kepplinger , Martin Kepplinger Subject: [PATCH 4/5] arch: sh: use sign_extend64() for sign extension Date: Fri, 16 Oct 2015 11:07:06 +0200 Message-Id: <1444986427-12101-5-git-send-email-martink@posteo.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444986427-12101-1-git-send-email-martink@posteo.de> References: <1444986427-12101-1-git-send-email-martink@posteo.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Martin Kepplinger --- 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 10aed41..3a4fed4 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.1.4