From patchwork Thu Oct 3 10:38:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 20769 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECDCE266EC for ; Thu, 3 Oct 2013 10:38:34 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf4716211qen.10 for ; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=VssAW5ZD2Mv5L95HtjwGH99/UesuKvWt1fMhudzfFOs=; b=TFCJ8+q3DvguWU3pFTDv3GtmPgfLG/WKKh/I1XrmnYysnP/EjQa97kqQRs+O0IeihF 04WGMyWrZUvBOrsl9wgS0+KVo3kQ33GnLnDU3SoSI7EaH8SDlYu/1LkDrrOLS3xZaEiM /YivGCoIf4mJxGWeZ61wG+x8XHQCFx72+66TKxT6JjmTLIxCEnfpC57DC2uNfmP7koWb l2NWOHTeXUvE18ByiYBP4gr6HmC1JB5Tncs4GeAjM/F8oU1c2xhUErfU2dgIydRbXBbq dVfX60rH3ZT1tBLuUbSwduY2sihPCrRznIH3SIkcjkzwhuvduP5zgneBnK7DuxI5s0Tg s88w== X-Received: by 10.236.51.9 with SMTP id a9mr6519791yhc.41.1380796714574; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.210 with SMTP id c18ls947530qey.37.gmail; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr6834515vcj.18.1380796714470; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id un5si1568224vcb.22.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 03:38:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so1405459vbf.7 for ; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) X-Gm-Message-State: ALoCoQntQeUSypX6Bp555uDqey2O+nXodiKb4ouI8GLj2FDOSvrLdQ0pixa8GgaNogCZPxS4Scon X-Received: by 10.220.1.203 with SMTP id 11mr6724055vcg.15.1380796714365; Thu, 03 Oct 2013 03:38:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp167216vcz; Thu, 3 Oct 2013 03:38:33 -0700 (PDT) X-Received: by 10.180.20.163 with SMTP id o3mr2110307wie.1.1380796713439; Thu, 03 Oct 2013 03:38:33 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id gw5si2677630wib.73.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 03:38:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.212.178; Received: by mail-wi0-f178.google.com with SMTP id hn9so2329053wib.11 for ; Thu, 03 Oct 2013 03:38:32 -0700 (PDT) X-Received: by 10.194.120.68 with SMTP id la4mr6391109wjb.33.1380796712856; Thu, 03 Oct 2013 03:38:32 -0700 (PDT) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginmedia.com. [82.1.113.198]) by mx.google.com with ESMTPSA id mb7sm12583147wic.10.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 03:38:31 -0700 (PDT) Message-ID: <524D4926.2050405@linaro.org> Date: Thu, 03 Oct 2013 11:38:30 +0100 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: libc-ports@sourceware.org CC: patches@linaro.org Subject: [PATCH] ARM: Allow building __sigsetjmp as Thumb. X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert __sigsetjmp code to allow building as Thumb. ports/ChangeLog.arm: 2013-09-25 Will Newton * sysdeps/arm/setjmp.S (NO_THUMB): Remove define. (__sigsetjmp): Use Thumb supported instructions. --- ports/sysdeps/arm/setjmp.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ports/sysdeps/arm/setjmp.S b/ports/sysdeps/arm/setjmp.S index b38b919..fedd994 100644 --- a/ports/sysdeps/arm/setjmp.S +++ b/ports/sysdeps/arm/setjmp.S @@ -16,8 +16,6 @@ License along with the GNU C Library. If not, see . */ -/* ??? Needs more rearrangement for the STM to handle thumb mode. */ -#define NO_THUMB #include #include #include @@ -35,7 +33,8 @@ ENTRY (__sigsetjmp) sfi_breg ip, \ stmia \B!, JMP_BUF_REGLIST #ifdef PTR_MANGLE - PTR_MANGLE2 (a4, sp, a3) + mov a4, sp + PTR_MANGLE2 (a4, a4, a3) str a4, [ip], #4 PTR_MANGLE2 (a4, lr, a3) str a4, [ip], #4