From patchwork Mon Mar 23 10:06:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 46174 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C753E20D10 for ; Mon, 23 Mar 2015 10:06:38 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf26357849lbv.0 for ; Mon, 23 Mar 2015 03:06:37 -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:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=c7ohUHuNxriBocbRcQAKeXQZ0EgtfYaLTR+Jpb5zV6Q=; b=DdcBnGZcATfTWGA2fngzInrqGeQ6cUmaJkMIyPPUpG4qDIL/AMXQMy2a2FOq3dbB0D WC6IwHJuFRD3zxIcuvM/YgkyLoedlGHF/UrlC+HVe8FFRG1Xmyl+1eirFFhvcJDRmCR2 X220LHfCMw80AEyc+E8SQm5GpaiZvZVXt8fqUpyQIoh+cDnwPg93XzQYgMjcYE1ZHCbm kgvypuzsn/CwOITzUFSDfDG9Wctbm45DCBdVusUxjQcQaj+lyWfSTwFgbER/VD1cS3W0 uWlXYGTkXZ4KoEER8eppATVJk0nigFKVZDk0hanC4DXYadTy2lMljiWxpkxAVIHVvXOS 2xUw== X-Gm-Message-State: ALoCoQknWOW/H33FbVTl32rnLFJ1i+vlN4CB6n+K9g0jv/FTWCN4ryKupyLZtAipB26Wd+apKW18 X-Received: by 10.194.11.70 with SMTP id o6mr15405296wjb.6.1427105197787; Mon, 23 Mar 2015 03:06:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.165 with SMTP id rd5ls21016lac.77.gmail; Mon, 23 Mar 2015 03:06:37 -0700 (PDT) X-Received: by 10.112.54.165 with SMTP id k5mr83514547lbp.57.1427105197459; Mon, 23 Mar 2015 03:06:37 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id f7si302480lab.19.2015.03.23.03.06.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 03:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by labto5 with SMTP id to5so22170342lab.0 for ; Mon, 23 Mar 2015 03:06:37 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr9168828lae.32.1427105197314; Mon, 23 Mar 2015 03:06:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp724739lbq; Mon, 23 Mar 2015 03:06:36 -0700 (PDT) X-Received: by 10.180.83.195 with SMTP id s3mr18344475wiy.54.1427105196772; Mon, 23 Mar 2015 03:06:36 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id n7si11103448wik.1.2015.03.23.03.06.33; Mon, 23 Mar 2015 03:06:36 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 28A75A7437; Mon, 23 Mar 2015 11:06:33 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GalOH6Y7DyPY; Mon, 23 Mar 2015 11:06:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7215AA7425; Mon, 23 Mar 2015 11:06:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52C33A7425 for ; Mon, 23 Mar 2015 11:06:29 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mXSowblBehKO for ; Mon, 23 Mar 2015 11:06:29 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by theia.denx.de (Postfix) with ESMTPS id 12A90A7422 for ; Mon, 23 Mar 2015 11:06:25 +0100 (CET) Received: by lbcgn8 with SMTP id gn8so114473819lbc.2 for ; Mon, 23 Mar 2015 03:06:25 -0700 (PDT) X-Received: by 10.112.151.2 with SMTP id um2mr33517473lbb.31.1427105185227; Mon, 23 Mar 2015 03:06:25 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id x7sm87147lag.3.2015.03.23.03.06.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 03:06:23 -0700 (PDT) From: Linus Walleij To: u-boot@lists.denx.de, Albert Aribaud , Tom Rini Date: Mon, 23 Mar 2015 11:06:10 +0100 Message-Id: <1427105174-20072-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Cc: Steve Rae , u-boot-review@google.com Subject: [U-Boot] [PATCH 1/5] armv8: semihosting: do not inline trap call X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The semihosting trap call does not like being inlined, probably because that will mean register reordering screwing up the return value in r0, so tag this function "noinline". Signed-off-by: Linus Walleij --- arch/arm/lib/semihosting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/semihosting.c b/arch/arm/lib/semihosting.c index fd6d8573f560..d3f724b726e1 100644 --- a/arch/arm/lib/semihosting.c +++ b/arch/arm/lib/semihosting.c @@ -26,7 +26,7 @@ /* * Call the handler */ -static long smh_trap(unsigned int sysnum, void *addr) +static noinline long smh_trap(unsigned int sysnum, void *addr) { register long result asm("r0"); #if defined(CONFIG_ARM64)