Message ID | 1409961977-11762-3-git-send-email-behanw@converseincode.com |
---|---|
State | Accepted |
Commit | 0ebc1f5671dff84b7ba4dcc38ebce956e6dea5fa |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBM5AVGQAKGQEKOAYO7A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BC916202A1 for <linaro@patches.linaro.org>; Sat, 6 Sep 2014 00:07:15 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf62795771obc.5 for <linaro@patches.linaro.org>; Fri, 05 Sep 2014 17:07:15 -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=RW7bMTEHyxwkA1k2BJDvHvC8cyij+4WFNnK2ZL+kHZw=; b=MhviCTn5AxFw48FtBgY6uGxnfIUdzmNYEZHanDMjf1trPtBS3ghy104WGsJDOCJlBZ uvHwsuyojh6ULQtX1vQiTclqgaMFLEiTFhZHa48z7Ju5H3DJq8YEsg0uOjB8MgoLii59 CW7RTS+CEcWWrq+JHzE+b2Y2poPGZMpFIM73SSZ9lH0KF/k+SoXSiURiQp+gSAeQ5TPC iWEh8Pdq9VJfZTT9d7+K6hIhIcccH+X52yqU5omDQaiQQP8DNoTQHVClEGWLcLBEemz+ 9oMI2x9Lrq4jfSQEyovnFvUirv/jLr1sA9uNEkY8jsbSnjdIx3+62YHKH8QnP1Dx6K1u V0cw== X-Gm-Message-State: ALoCoQkc0Hiz6XcEYNCtVZip8xxAIYTO89rQnImxpPgfBdWmLMi5oQfMjelX8B40eXVc3uRGrND2 X-Received: by 10.182.245.134 with SMTP id xo6mr9096870obc.40.1409962035394; Fri, 05 Sep 2014 17:07:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.168 with SMTP id p37ls1019482qgp.12.gmail; Fri, 05 Sep 2014 17:07:15 -0700 (PDT) X-Received: by 10.52.239.108 with SMTP id vr12mr10902278vdc.30.1409962035273; Fri, 05 Sep 2014 17:07:15 -0700 (PDT) Received: from mail-vc0-x22f.google.com (mail-vc0-x22f.google.com [2607:f8b0:400c:c03::22f]) by mx.google.com with ESMTPS id a9si1439415vcv.75.2014.09.05.17.07.15 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 17:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22f as permitted sender) client-ip=2607:f8b0:400c:c03::22f; Received: by mail-vc0-f175.google.com with SMTP id lf12so12958728vcb.6 for <patchwork-forward@linaro.org>; Fri, 05 Sep 2014 17:07:15 -0700 (PDT) X-Received: by 10.52.1.39 with SMTP id 7mr10885444vdj.17.1409962035126; 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 uj3csp153528vcb; Fri, 5 Sep 2014 17:07:14 -0700 (PDT) X-Received: by 10.69.25.35 with SMTP id in3mr472517pbd.63.1409962034229; Fri, 05 Sep 2014 17:07:14 -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.13 for <multiple recipients>; Fri, 05 Sep 2014 17:07:14 -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 S1752768AbaIFAG6 (ORCPT <rfc822;amit.pundir@linaro.org> + 26 others); Fri, 5 Sep 2014 20:06:58 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:53414 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752575AbaIFAGt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 5 Sep 2014 20:06:49 -0400 Received: by mail-pd0-f176.google.com with SMTP id w10so7383047pde.21 for <linux-kernel@vger.kernel.org>; Fri, 05 Sep 2014 17:06:49 -0700 (PDT) X-Received: by 10.70.94.103 with SMTP id db7mr26573236pdb.122.1409962009314; Fri, 05 Sep 2014 17:06:49 -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.46 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 17:06:48 -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 2/7] arm: LLVMLinux: Use current_stack_pointer to calculate pt_regs address Date: Fri, 5 Sep 2014 17:06:12 -0700 Message-Id: <1409961977-11762-3-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::22f 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/ptrace.h b/arch/arm/include/asm/ptrace.h index 601264d..51622ba 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h @@ -154,9 +154,8 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs) return regs->ARM_sp; } -#define current_pt_regs(void) ({ \ - register unsigned long sp asm ("sp"); \ - (struct pt_regs *)((sp | (THREAD_SIZE - 1)) - 7) - 1; \ +#define current_pt_regs(void) ({ (struct pt_regs *) \ + ((current_stack_pointer | (THREAD_SIZE - 1)) - 7) - 1; \ }) #endif /* __ASSEMBLY__ */