Message ID | 1409113774-3172-2-git-send-email-behanw@converseincode.com |
---|---|
State | Accepted |
Commit | 3337a10e0d0cbc9225cefc23aa7a604b698367ed |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBSV56WPQKGQEHXUKEHY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1086C20551 for <linaro@patches.linaro.org>; Wed, 27 Aug 2014 04:30:03 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf49700583qcx.1 for <linaro@patches.linaro.org>; Tue, 26 Aug 2014 21:30:02 -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=viee/kKJ0n2MoBG5CPWwnt4QD+TiYK3Pom1MumAzxwM=; b=lRmZUEZ9zbZilz399bgyDuBrDS62kARWtFwKM0ywmp8FT8OqBimjsnb1IsVec1NOIS ht9+zS7sLMLSjgHNQPVJwfYdKGEZkLipiMaFPn7cTStsQR+ib3CYhStryKWfBEKEnIgS Ln3KKZxAYf+Z0G+VNWfLy/DemOh2J41awaGgC+w7Q4rDm1yR6DzdTN4DUn2mSnZ6XWU3 CvcAIkyaLN+C1s1mNkVgHOhMVZCvtgtRZ5BG3wTucOk+9XALhrdaa6TpBJsCE5nNBEvZ +ubPg/d3DNGZmPSNmt5+eKE1Yb+rho8RyvG2U/5qjbeBbFNyQ+zeoufso5YCsLrDFqNv aFQw== X-Gm-Message-State: ALoCoQlds8h3ZxGiiM5ohHI27hmYwL06r18eBY/wS3S9ztixswvKGsCBMk5WgQ//wcgYJAX+H+HO X-Received: by 10.224.127.6 with SMTP id e6mr20851488qas.3.1409113802897; Tue, 26 Aug 2014 21:30:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.245 with SMTP id d108ls1005449qgd.68.gmail; Tue, 26 Aug 2014 21:30:02 -0700 (PDT) X-Received: by 10.236.93.228 with SMTP id l64mr48024297yhf.26.1409113802801; Tue, 26 Aug 2014 21:30:02 -0700 (PDT) Received: from mail-yk0-x22a.google.com (mail-yk0-x22a.google.com [2607:f8b0:4002:c07::22a]) by mx.google.com with ESMTPS id l26si4137069yha.156.2014.08.26.21.30.02 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 21:30:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:4002:c07::22a as permitted sender) client-ip=2607:f8b0:4002:c07::22a; Received: by mail-yk0-f170.google.com with SMTP id 9so12306982ykp.15 for <patchwork-forward@linaro.org>; Tue, 26 Aug 2014 21:30:02 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr3541910vdb.27.1409113802684; Tue, 26 Aug 2014 21:30:02 -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 uj3csp27529vcb; Tue, 26 Aug 2014 21:30:02 -0700 (PDT) X-Received: by 10.68.183.68 with SMTP id ek4mr42991320pbc.54.1409113801745; Tue, 26 Aug 2014 21:30:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nb10si6827108pdb.257.2014.08.26.21.30.01 for <multiple recipients>; Tue, 26 Aug 2014 21:30:01 -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 S932615AbaH0E3r (ORCPT <rfc822;yazen.ghannam@linaro.org> + 26 others); Wed, 27 Aug 2014 00:29:47 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36171 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbaH0E3o (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 27 Aug 2014 00:29:44 -0400 Received: by mail-pa0-f44.google.com with SMTP id eu11so24755261pac.3 for <linux-kernel@vger.kernel.org>; Tue, 26 Aug 2014 21:29:43 -0700 (PDT) X-Received: by 10.68.105.197 with SMTP id go5mr42095109pbb.73.1409113783640; Tue, 26 Aug 2014 21:29:43 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id dn5sm5029335pbb.2.2014.08.26.21.29.41 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Aug 2014 21:29:42 -0700 (PDT) From: behanw@converseincode.com To: ard.biesheuvel@linaro.org, catalin.marinas@arm.com, cl@linux-foundation.org, jays.lee@samsung.com, k.khlebnikov@samsung.com, larry.bassel@linaro.org, olof@lixom.net, peterz@infradead.org, takahiro.akashi@linaro.org, tglx@linutronix.de, tj@kernel.org, will.deacon@arm.com Cc: christoffer.dall@linaro.org, kgene.kim@samsung.com, khilman@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sungjinn.chung@samsung.com, Behan Webster <behanw@converseincode.com> Subject: [PATCH V2 1/6] arm64: LLVMLinux: Add current_stack_pointer() for arm64 Date: Tue, 26 Aug 2014 21:29:29 -0700 Message-Id: <1409113774-3172-2-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409113774-3172-1-git-send-email-behanw@converseincode.com> References: <20140826141608.GT23445@arm.com> <1409113774-3172-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:4002:c07::22a 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/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index 45108d8..356e037 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -69,6 +69,11 @@ struct thread_info { #define init_stack (init_thread_union.stack) /* + * how to get the current stack pointer from C + */ +register unsigned long current_stack_pointer asm ("sp"); + +/* * how to get the thread information struct from C */ static inline struct thread_info *current_thread_info(void) __attribute_const__;