Message ID | 1409113774-3172-3-git-send-email-behanw@converseincode.com |
---|---|
State | Accepted |
Commit | bb28cec4ea2f5151c08e061c6de825a8c853bbd6 |
Headers | show
Return-Path: <patchwork-forward+bncBDQ5TP53TUNRBD566WPQKGQEATWHM6A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BEBD720551 for <linaro@patches.linaro.org>; Wed, 27 Aug 2014 04:31:11 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id l13sf24734424iga.10 for <linaro@patches.linaro.org>; Tue, 26 Aug 2014 21:31:11 -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=AeXmKciSfwCK9Vjhn6aTwGI+oqoXdTQzsawWagJBOG0=; b=mYgMs6e2oFrgqCPlbB+zJH25rnGpJnASbXU0AuIMrzzGgxsya99Ibn5HNS5J7ig667 LUpmkoqscR4C7DmOjIkxULSpTmaqCEu48i6rTo94KvkJbSZu2tQskkSN26ZdTLmOIDZc CueVVGpvXINGH5QRgTlefNpW1mXruF1O/LrcL9CSVP+ZLwXLJ3Zj4WDA56nNLBP4FG/3 Gq0f7NixN0cJZ3sykyY3qIOAsC3e6sTvdEi095xFybomdqhk7ST4Bm5Zsete804zwepk b3DgDsxGnoSUCl6t0QLN3ZstZ6nGzMmigFWM5n3Live61UCZsfwnrWzdcwccFIIOGuQE Mimw== X-Gm-Message-State: ALoCoQlbVsUX4FsZ0C52UJ8EEmrZ63z5r9z7l0hX6B7ACGqpuXnQovN7KDe7kcVZZ2kwUMz8g9rv X-Received: by 10.182.29.10 with SMTP id f10mr20313827obh.23.1409113871204; Tue, 26 Aug 2014 21:31:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.41 with SMTP id 38ls2842825qgi.26.gmail; Tue, 26 Aug 2014 21:31:11 -0700 (PDT) X-Received: by 10.236.124.66 with SMTP id w42mr30007620yhh.51.1409113871114; Tue, 26 Aug 2014 21:31:11 -0700 (PDT) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [2607:f8b0:4002:c07::234]) by mx.google.com with ESMTPS id o8si4239085yhd.67.2014.08.26.21.31.11 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 21:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:4002:c07::234 as permitted sender) client-ip=2607:f8b0:4002:c07::234; Received: by mail-yk0-f180.google.com with SMTP id 200so12244462ykr.39 for <patchwork-forward@linaro.org>; Tue, 26 Aug 2014 21:31:11 -0700 (PDT) X-Received: by 10.52.121.74 with SMTP id li10mr1203382vdb.19.1409113871015; Tue, 26 Aug 2014 21:31:11 -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 uj3csp27625vcb; Tue, 26 Aug 2014 21:31:10 -0700 (PDT) X-Received: by 10.70.134.72 with SMTP id pi8mr1033966pdb.167.1409113870160; Tue, 26 Aug 2014 21:31:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rm10si6801774pab.228.2014.08.26.21.31.09 for <multiple recipients>; Tue, 26 Aug 2014 21:31:10 -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 S932850AbaH0EbD (ORCPT <rfc822;yazen.ghannam@linaro.org> + 26 others); Wed, 27 Aug 2014 00:31:03 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34277 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbaH0E3q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 27 Aug 2014 00:29:46 -0400 Received: by mail-pa0-f43.google.com with SMTP id lf10so24547091pab.2 for <linux-kernel@vger.kernel.org>; Tue, 26 Aug 2014 21:29:46 -0700 (PDT) X-Received: by 10.68.135.70 with SMTP id pq6mr42643353pbb.10.1409113786117; Tue, 26 Aug 2014 21:29:46 -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.43 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Aug 2014 21:29:45 -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>, Mark Charlebois <charlebm@gmail.com> Subject: [PATCH V2 2/6] arm64: LLVMLinux: Use current_stack_pointer in save_stack_trace_tsk Date: Tue, 26 Aug 2014 21:29:30 -0700 Message-Id: <1409113774-3172-3-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::234 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/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c index 55437ba..407991b 100644 --- a/arch/arm64/kernel/stacktrace.c +++ b/arch/arm64/kernel/stacktrace.c @@ -111,10 +111,9 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) frame.sp = thread_saved_sp(tsk); frame.pc = thread_saved_pc(tsk); } else { - register unsigned long current_sp asm("sp"); data.no_sched_functions = 0; frame.fp = (unsigned long)__builtin_frame_address(0); - frame.sp = current_sp; + frame.sp = current_stack_pointer; frame.pc = (unsigned long)save_stack_trace_tsk; }