Message ID | 1406764649-20326-4-git-send-email-behanw@converseincode.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBD4N42PAKGQEN3YSMNA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3983A20792 for <linaro@patches.linaro.org>; Wed, 30 Jul 2014 23:58:08 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q107sf3694446qgd.3 for <linaro@patches.linaro.org>; Wed, 30 Jul 2014 16:58:07 -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=+z+HGsVM69ntRwxYAdHBHfvF2DluFE0RNOrpiM8rS7E=; b=fDHlE7ju3JBjUiOghuMecVhnc7XmGwZoJZqcfLKCTC0tDQcer7cdXOyGxDn3QduIuP VcPd59k9aQwodFl6xtpQIBxMDZj19Mkt1NELdcZQJbmwEbtikFkLWvRpNa7eCjj9kvdx u6sNi7xsz7oFWcG2MjGBSGxzVBFLuUTscQxSEczEwj4BZY9IGz8FPiBko6rfZANdbCwV hr7cSsWrfyY8yB1KiQvps55mjh3MH9A+lQgAa331SawjwoNCwUPXNM5xkVwgbEtO2H/m EoDWI/bpcUR4sfwFwnu507zLCgubJMY+rWWC7N21NsT/NZ1+fElHkUubF35DLmLFK1wb ESsg== X-Gm-Message-State: ALoCoQky71xu/xW1juUVo5XBbyrwD06z5ijf2w1Z07qkSDlc84eXsUVzdPG+j3gdTJFU3sIaA8nb X-Received: by 10.236.122.236 with SMTP id t72mr145027yhh.15.1406764687297; Wed, 30 Jul 2014 16:58:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.1 with SMTP id p1ls708392qga.97.gmail; Wed, 30 Jul 2014 16:58:07 -0700 (PDT) X-Received: by 10.52.81.129 with SMTP id a1mr5922965vdy.80.1406764687177; Wed, 30 Jul 2014 16:58:07 -0700 (PDT) Received: from mail-vc0-x22d.google.com (mail-vc0-x22d.google.com [2607:f8b0:400c:c03::22d]) by mx.google.com with ESMTPS id cz8si3150000vcb.88.2014.07.30.16.58.07 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Jul 2014 16:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22d as permitted sender) client-ip=2607:f8b0:400c:c03::22d; Received: by mail-vc0-f173.google.com with SMTP id hy10so3076323vcb.4 for <patchwork-forward@linaro.org>; Wed, 30 Jul 2014 16:58:07 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr8767649vcn.16.1406764687082; Wed, 30 Jul 2014 16:58:07 -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 tc5csp64802vcb; Wed, 30 Jul 2014 16:58:06 -0700 (PDT) X-Received: by 10.70.52.1 with SMTP id p1mr8200578pdo.111.1406764686092; Wed, 30 Jul 2014 16:58:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xg3si3922160pab.155.2014.07.30.16.58.05 for <multiple recipients>; Wed, 30 Jul 2014 16:58:06 -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 S1756004AbaG3X5x (ORCPT <rfc822;yazen.ghannam@linaro.org> + 24 others); Wed, 30 Jul 2014 19:57:53 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:63656 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755091AbaG3X5u (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 30 Jul 2014 19:57:50 -0400 Received: by mail-pa0-f50.google.com with SMTP id et14so2432580pad.23 for <linux-kernel@vger.kernel.org>; Wed, 30 Jul 2014 16:57:50 -0700 (PDT) X-Received: by 10.68.242.103 with SMTP id wp7mr347462pbc.131.1406764670370; Wed, 30 Jul 2014 16:57:50 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id fm12sm5379301pdb.46.2014.07.30.16.57.48 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jul 2014 16:57:49 -0700 (PDT) From: behanw@converseincode.com To: ard.biesheuvel@linaro.org, catalin.marinas@arm.com, k.khlebnikov@samsung.com, olof@lixom.net, peterz@infradead.org, takahiro.akashi@linaro.org, tglx@linutronix.de, will.deacon@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org, dwmw2@infradead.org, Behan Webster <behanw@converseincode.com>, Mark Charlebois <charlebm@gmail.com> Subject: [PATCH 3/4] arm64: LLVMLinux: Calculate current_thread_info from current_stack_pointer Date: Wed, 30 Jul 2014 16:57:28 -0700 Message-Id: <1406764649-20326-4-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406764649-20326-1-git-send-email-behanw@converseincode.com> References: <1406764649-20326-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:c03::22d 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> |
diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index e6b6094..c2432d2 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -80,8 +80,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) \