From patchwork Mon Oct 21 16:34:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 177127 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3647195ill; Mon, 21 Oct 2019 09:35:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGGBxTaY8icm83Ajxj+rMCSTq9ZdfpuDMQfSc5GmY9iaR0p1ha3kY8BW3DdV/JSU4jQKns X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr25792279edv.123.1571675734553; Mon, 21 Oct 2019 09:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571675734; cv=none; d=google.com; s=arc-20160816; b=AKLOzSiYEkEl5/9NmNTD4SGYNU3VOOzBD0L7IcVuM8SIkqX57dpe4wjGWEhCvMpHRJ /FAAvUJYb/Ypya8l/9YgriAwmquN0rZcoxq8iJYxNaqpNrt13x5YTv/wPSh37vjieJoS EQA3XcDAa0QR1t9o4M2EW1IhLLVEZZ30QuXIwpUmhbbf6JnfdoxMxbgdaCWOnBbTuOPZ Jy/psnzdrjDj8pEO86EbAGSnQ6mKrG0KzMGS28czMxxG/Jgk/iffsGhMvLOCuvZP0E2y wS6flGdQb32OIzBTZXp5aaTyk0fw5foGwkGycOZpAwtSELfq1OTwec3alnKjlfH2ggp6 u3cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=uoxtur6uKC0TOC2Xqv33ejnU9zpeDsrDBmaWxjOTHA4=; b=yyJRFZJQnNVDM5fjAa+mnsM7Gd0Jipax8pCjpA7rWxeTCyjF9jYDiVqZqGsBnu8r+N L+ecx6WLzzzXv2Vu+08FQwW34cFlte78Y8Zovn4K43ZGp198VcqDfjFAmvOVh0JT6SfT 7q4U8KmYm210iqvG19orPBiSVmftJAcnoymd9mAUzTGUbsqU8XG4oW9y2gHLZQJQ8Ny4 A5ti1OYKFlBDPvIvDALBDDbJoxk7sBVovj4YafAHMq1Nzt0rvyGNzAo1Cd2NyZJD1SRg t9tpOYSkVFOcb0wDArzIfWBHW5lb7Ka4yu57wjxvMQkkGxXUpv7ENkGcVqt1UWULT/IZ /SKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw26si4495835ejb.88.2019.10.21.09.35.34; Mon, 21 Oct 2019 09:35:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729725AbfJUQfW (ORCPT + 26 others); Mon, 21 Oct 2019 12:35:22 -0400 Received: from [217.140.110.172] ([217.140.110.172]:57654 "EHLO foss.arm.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1729634AbfJUQfV (ORCPT ); Mon, 21 Oct 2019 12:35:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F36B21692; Mon, 21 Oct 2019 09:34:53 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B29693F71F; Mon, 21 Oct 2019 09:34:51 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: amit.kachhap@arm.com, ard.biesheuvel@linaro.org, catalin.marinas@arm.com, deller@gmx.de, duwe@suse.de, james.morse@arm.com, jeyu@kernel.org, jpoimboe@redhat.com, jthierry@redhat.com, mark.rutland@arm.com, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, svens@stackframe.org, takahiro.akashi@linaro.org, will@kernel.org Subject: [PATCH 6/8] arm64: asm-offsets: add S_FP Date: Mon, 21 Oct 2019 17:34:24 +0100 Message-Id: <20191021163426.9408-7-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191021163426.9408-1-mark.rutland@arm.com> References: <20191021163426.9408-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So that assembly code can more easily manipulate the FP (x29) within a pt_regs, add an S_FP asm-offsets definition. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/asm-offsets.c | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c index 214685760e1c..a5bdce8af65b 100644 --- a/arch/arm64/kernel/asm-offsets.c +++ b/arch/arm64/kernel/asm-offsets.c @@ -56,6 +56,7 @@ int main(void) DEFINE(S_X24, offsetof(struct pt_regs, regs[24])); DEFINE(S_X26, offsetof(struct pt_regs, regs[26])); DEFINE(S_X28, offsetof(struct pt_regs, regs[28])); + DEFINE(S_FP, offsetof(struct pt_regs, regs[29])); DEFINE(S_LR, offsetof(struct pt_regs, regs[30])); DEFINE(S_SP, offsetof(struct pt_regs, sp)); DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));