Message ID | 1404850576-2006-6-git-send-email-behanw@converseincode.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBUVD6GOQKGQEIBRWCEQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2BC692070A for <linaro@patches.linaro.org>; Tue, 8 Jul 2014 20:17:23 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 19sf15193075ykq.0 for <linaro@patches.linaro.org>; Tue, 08 Jul 2014 13:17:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=n06Skt0HMo9c4Q74ERAfIo4vi2wxd4Xn9dWRQyZmg0M=; b=BQUTi4iLJFN6Ddm+7aLFE8C1DjVS+bwjmm8QPEJBr9+AQ7vExVKce55TBEUIaOcf9b c0qBmCkYWJPnfam5T5tBLHPhy0IH0pwfewNgiCnWAg8sr2FvBSNyJRSRVFUTXDKzFhiU ZpfQgJPGhb8In58g6UtMmYjv6Xgyi9dVMWOjovycWazdQA1TWUowA72so2vhSlniakAh VPq2uNpu0bDqDRk4KErDDCo1d88a3P2/+D/HSWuJtGsbKniya8AojYTvn48EHmIqfQZu I2Str1iacHlcPrzzLdBQNbgEj5tJ6hqPgj5bcfExYDQ3JboGEfDCn8pM5zhuUbh+z3Uf kgjg== X-Gm-Message-State: ALoCoQkp5Z6gq5qBCMDXmZo8f4kDWnOC6YeiTXGb3KNmIRwXBg9tofyW0WkuntfDveOUT8RiNNuf X-Received: by 10.236.189.68 with SMTP id b44mr16261061yhn.4.1404850642993; Tue, 08 Jul 2014 13:17:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.210 with SMTP id 76ls2266234qgp.33.gmail; Tue, 08 Jul 2014 13:17:22 -0700 (PDT) X-Received: by 10.58.243.1 with SMTP id wu1mr36424462vec.27.1404850642907; Tue, 08 Jul 2014 13:17:22 -0700 (PDT) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [2607:f8b0:400c:c01::233]) by mx.google.com with ESMTPS id j18si19028167vdf.99.2014.07.08.13.17.22 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 13:17:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::233 as permitted sender) client-ip=2607:f8b0:400c:c01::233; Received: by mail-ve0-f179.google.com with SMTP id sa20so6294079veb.10 for <patchwork-forward@linaro.org>; Tue, 08 Jul 2014 13:17:22 -0700 (PDT) X-Received: by 10.52.248.209 with SMTP id yo17mr49783vdc.60.1404850642820; Tue, 08 Jul 2014 13:17:22 -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.221.37.5 with SMTP id tc5csp803381vcb; Tue, 8 Jul 2014 13:17:22 -0700 (PDT) X-Received: by 10.68.164.100 with SMTP id yp4mr5017854pbb.136.1404850641920; Tue, 08 Jul 2014 13:17:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn1si44284231pbb.74.2014.07.08.13.17.19; Tue, 08 Jul 2014 13:17:19 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932408AbaGHUQ7 (ORCPT <rfc822;mturquette@linaro.org> + 27 others); Tue, 8 Jul 2014 16:16:59 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:55128 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932300AbaGHUQw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Jul 2014 16:16:52 -0400 Received: by mail-pd0-f169.google.com with SMTP id ft15so949810pdb.14 for <linux-kernel@vger.kernel.org>; Tue, 08 Jul 2014 13:16:51 -0700 (PDT) X-Received: by 10.70.90.7 with SMTP id bs7mr4324124pdb.141.1404850611652; Tue, 08 Jul 2014 13:16:51 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id v9sm25528039pdp.88.2014.07.08.13.16.49 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Jul 2014 13:16:50 -0700 (PDT) From: behanw@converseincode.com To: anurag19aggarwal@gmail.com, catalin.marinas@arm.com, charlebm@gmail.com, dave.long@linaro.org, k.khlebnikov@samsung.com, linux@arm.linux.org.uk, linyongting@gmail.com, Nikolay.Borisov@arm.com, tglx@linutronix.de, u.kleine-koenig@pengutronix.de, will.deacon@arm.com Cc: behanw@converseincode.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rabin@rab.in, rostedt@goodmis.org, dwmw2@infradead.org Subject: [PATCH 5/6] arm: LLVMLinux: Calculate current_thread_info from current_stack_pointer Date: Tue, 8 Jul 2014 13:16:15 -0700 Message-Id: <1404850576-2006-6-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404850576-2006-1-git-send-email-behanw@converseincode.com> References: <1404850576-2006-1-git-send-email-behanw@converseincode.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::233 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h index 9cb9c66..3184d94 100644 --- a/arch/arm/include/asm/thread_info.h +++ b/arch/arm/include/asm/thread_info.h @@ -111,8 +111,8 @@ static inline struct thread_info *current_thread_info(void) __attribute_const__; static inline struct thread_info *current_thread_info(void) { - register unsigned long sp asm ("sp"); - return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); + return (struct thread_info *) + (current_stack_pointer & ~(THREAD_SIZE - 1)); } #define thread_saved_pc(tsk) \