Message ID | 1409961977-11762-6-git-send-email-behanw@converseincode.com |
---|---|
State | Accepted |
Commit | f6c9cbf091a4b0769180d663e37621569b054d11 |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBNFAVGQAKGQEI6YYJVI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8ABAA202A1 for <linaro@patches.linaro.org>; Sat, 6 Sep 2014 00:07:16 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id e131sf7031470oig.2 for <linaro@patches.linaro.org>; Fri, 05 Sep 2014 17:07:16 -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:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=9XOBQ4MHhfrUq2dolRQ0odPKTJXsb8IFwFH9as+567I=; b=I9qRPVNx0pK4+IJJ7qvFKlVd3ATXp7ZOq6jFkdw6f4uQcS5vn+nM8MJqy5Z2HtjO5/ Z7zwrUIZ/EWK5Sa7qwW4CD0Pcothwh1F9vxKSGhdIsb7gmFY6ldw46m9lfegQt5uCVXy IXeQ5ThiWIR2J1Yp01RTGyfrljRSdp48sfzKPDzgfYDQB5kX5vYtQqImGzm7FlZvOSPw iGD5APDKzMhXlE+0vN/CTxrFLeKVdTCmvDFLXZkPX8ElL4UIDN3YtDyYai+SY9THrYfB 1ls3PQXMCk9ir8MW8uygmJ+zTzJwImVuGvZIASr/X52xG+gpeVxeHY7GceE7NpaEstvy lf3w== X-Gm-Message-State: ALoCoQmLI/7Wqt2ScuVvH7CfuFKkrtMdkvNs1fPd+Ib89QVZ527cVZ9Dqr49YGvwO1jXNahFeFcM X-Received: by 10.42.16.69 with SMTP id o5mr9213882ica.17.1409962036167; Fri, 05 Sep 2014 17:07:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.99 with SMTP id 90ls59085qga.62.gmail; Fri, 05 Sep 2014 17:07:16 -0700 (PDT) X-Received: by 10.220.95.132 with SMTP id d4mr7948vcn.33.1409962036061; Fri, 05 Sep 2014 17:07:16 -0700 (PDT) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [2607:f8b0:400c:c03::22c]) by mx.google.com with ESMTPS id ee2si2201156vdb.40.2014.09.05.17.07.16 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 17:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22c as permitted sender) client-ip=2607:f8b0:400c:c03::22c; Received: by mail-vc0-f172.google.com with SMTP id le20so1764899vcb.31 for <patchwork-forward@linaro.org>; Fri, 05 Sep 2014 17:07:16 -0700 (PDT) X-Received: by 10.220.182.73 with SMTP id cb9mr13127398vcb.9.1409962035980; Fri, 05 Sep 2014 17:07:15 -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.45.67 with SMTP id uj3csp153530vcb; Fri, 5 Sep 2014 17:07:15 -0700 (PDT) X-Received: by 10.68.225.133 with SMTP id rk5mr439502pbc.101.1409962035128; Fri, 05 Sep 2014 17:07:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ku8si6187779pbc.247.2014.09.05.17.07.14 for <multiple recipients>; Fri, 05 Sep 2014 17:07:15 -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 S1752838AbaIFAHE (ORCPT <rfc822;amit.pundir@linaro.org> + 26 others); Fri, 5 Sep 2014 20:07:04 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:62383 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718AbaIFAG5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 5 Sep 2014 20:06:57 -0400 Received: by mail-pa0-f42.google.com with SMTP id lf10so23262715pab.1 for <linux-kernel@vger.kernel.org>; Fri, 05 Sep 2014 17:06:56 -0700 (PDT) X-Received: by 10.66.155.105 with SMTP id vv9mr26144572pab.61.1409962016573; Fri, 05 Sep 2014 17:06:56 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id yx1sm2867621pab.5.2014.09.05.17.06.54 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 17:06:55 -0700 (PDT) From: behanw@converseincode.com To: a.ryabinin@samsung.com, anurag19aggarwal@gmail.com, charlebm@gmail.com, cl@linux-foundation.org, dave.long@linaro.org, k.khlebnikov@samsung.com, linux@arm.linux.org.uk, linyongting@gmail.com, Nikolay.Borisov@arm.com, tglx@linutronix.de, tj@kernel.org, u.kleine-koenig@pengutronix.de Cc: behanw@converseincode.com, Dave.Martin@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rabin@rab.in, rostedt@goodmis.org, rric@kernel.org, will.deacon@arm.com Subject: [PATCH v2 5/7] arm: LLVMLinux: Calculate current_thread_info from current_stack_pointer Date: Fri, 5 Sep 2014 17:06:15 -0700 Message-Id: <1409961977-11762-6-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409961977-11762-1-git-send-email-behanw@converseincode.com> References: <1409961977-11762-1-git-send-email-behanw@converseincode.com> MIME-Version: 1.0 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:c03::22c 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: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h index bb43515..b9dc3dc 100644 --- a/arch/arm/include/asm/thread_info.h +++ b/arch/arm/include/asm/thread_info.h @@ -112,8 +112,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) \