From patchwork Thu May 16 19:28:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 2579711 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7F553E00E6 for ; Thu, 16 May 2013 19:28:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839Ab3EPT2Q (ORCPT ); Thu, 16 May 2013 15:28:16 -0400 Received: from mout.gmx.net ([212.227.17.20]:57058 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868Ab3EPT2P (ORCPT ); Thu, 16 May 2013 15:28:15 -0400 Received: from mailout-de.gmx.net ([10.1.76.28]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0LcEEV-1UBOXb1KYX-00je61 for ; Thu, 16 May 2013 21:28:14 +0200 Received: (qmail invoked by alias); 16 May 2013 19:28:14 -0000 Received: from p54AD4764.dip0.t-ipconnect.de (EHLO p100.box) [84.173.71.100] by mail.gmx.net (mp028) with SMTP; 16 May 2013 21:28:14 +0200 X-Authenticated: #1045983 X-Provags-ID: V01U2FsdGVkX19EHMlnBbZE9PjoCH2Tq0LIkyyLHSObHeySmsE5h8 hmJcnsh3n21xt0 Date: Thu, 16 May 2013 21:28:12 +0200 From: Helge Deller To: stable@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH] parisc: use long branch in fork_like macro Message-ID: <20130516192812.GB357@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org please add to stable kernel v3.9 upstream commit bbbfde782084b4f0d85ddffb88f1cf4650ff40e4 From: John David Anglin The "b" branch instruction used in the fork_like macro only can handle 17-bit pc-relative offsets. This fails with an out of range offset with some .config files. Rewrite to use the "be" instruction which can branch to any address in a space. Signed-off-by: John David Anglin Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S index aa486e4..36f4f1d 100644 --- a/arch/parisc/kernel/entry.S +++ b/arch/parisc/kernel/entry.S @@ -1702,7 +1702,8 @@ ENTRY(sys_\name\()_wrapper) ldo TASK_REGS(%r1),%r1 reg_save %r1 mfctl %cr27, %r28 - b sys_\name + ldil L%sys_\name, %r31 + be R%sys_\name(%sr4,%r31) STREG %r28, PT_CR27(%r1) ENDPROC(sys_\name\()_wrapper) .endm