Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp424488yba; Wed, 24 Apr 2019 03:46:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjkWIfgreUaUUNCVLLSH8q6Jul0JrSbiAJQfXVTJ80+cccSiU1Opo1kd3DQni7JyQBqyjA X-Received: by 2002:a17:902:3183:: with SMTP id x3mr31731921plb.170.1556102817324; Wed, 24 Apr 2019 03:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556102817; cv=none; d=google.com; s=arc-20160816; b=Ogv2yTSzX0es1Q1gVNUywU50SNqvFKqZ+r+wRIqYUSYSbLB9FSv3vi16eB4tvNjwY7 yATmzEKPHG8/rBZdsspZ8T2zfjCg1r9SIkQZ3GuxMs4gjk7LRtoz9dqf4atS2Pe56K9/ Hf/gu0aPjw1S8Rceyz5n8bwHRBiimirFEx8kfyl0PHHC0AxCAsq3A2TLoWw3FRmxET8R 4J0Gk2XcoSCUjjlK+JwVU8VIHwnwzgyawA2ySxfHMV54qD4nkgbKD4ho/tXdYeVpBzkx WzucwaonBP5A7BqMMG/7IoKyzWRJ8Is6Q4e7QP5XyLS646BFOtj29hmyA/vhf5Xxduvr LUpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=xWCCrm8KpHlaSErQqAt3ROb2GVvJOcMyWdQoO71EWvo=; b=d+aIuk3I0tVgHkZO/vtkjpfZlA2nNX2G63HPf977O2mc92JRmrPykUTi8UXZuQFrET se88EAQYjJNZNp61vIINmxn/SJqbMK98eIO1ZheYoklJeejoEWchVn7oMe0nVl2odrk1 6M6U4qnz+I4avj6YeXpBkK2TC+B4/x5PdIA0NbYAJLdY3T3dCBIqFpbj/84iA3fX7O81 /Syyllj06F8vDrNasjBZzUeHBOQumrC+6Xtd++UI+kJu5KyEoAd9CU18V4PsH5wxq7dQ ER96tJ5+q+lVFuvL6HVp8M2vF8+CM1IRMuuuXupH96UxdSza3cRpBgWAOFS0PdxtU9/2 eD4w== 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 n86si19203245pfb.273.2019.04.24.03.46.41; Wed, 24 Apr 2019 03:46:57 -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 S1727693AbfDXKoc (ORCPT + 99 others); Wed, 24 Apr 2019 06:44:32 -0400 Received: from foss.arm.com ([217.140.101.70]:41370 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbfDXKob (ORCPT ); Wed, 24 Apr 2019 06:44:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 546D8A78; Wed, 24 Apr 2019 03:44:31 -0700 (PDT) Received: from [10.1.197.45] (e112298-lin.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB3E33F5AF; Wed, 24 Apr 2019 03:44:28 -0700 (PDT) Subject: Re: [RFC 4/6] arm64: assembler: Add macro to annotate asm function having non standard stack-frame. To: Raphael Gault , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: jpoimboe@redhat.com, peterz@infradead.org, catalin.marinas@arm.com, will.deacon@arm.com References: <20190409135243.12424-1-raphael.gault@arm.com> <20190409135243.12424-5-raphael.gault@arm.com> From: Julien Thierry Message-ID: Date: Wed, 24 Apr 2019 11:44:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190409135243.12424-5-raphael.gault@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Raphaƫl, On 09/04/2019 14:52, Raphael Gault wrote: > Signed-off-by: Raphael Gault Even there is not much to say, we include a commit message to explain what the patch does and/or why we want it. > --- > arch/arm64/include/asm/assembler.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h > index 4feb6119c3c9..636a07a7eb76 100644 > --- a/arch/arm64/include/asm/assembler.h > +++ b/arch/arm64/include/asm/assembler.h > @@ -748,4 +748,22 @@ USER(\label, ic ivau, \tmp2) // invalidate I line PoU > .Lyield_out_\@ : > .endm > > + > +#ifdef CONFIG_STACK_VALIDATION > + /* > + * This macro is the arm64 assembler equivalent of the > + * macro STACK_FRAME_NON_STANDARD define at > + * ~/include/linux/frame.h > + */ > + .macro asm_stack_frame_non_standard func > + .pushsection ".discard.func_stack_frame_non_standard" > + .8byte \func > + .popsection > + .endm > +#else > + .macro asm_stack_frame_non_standard func > + .endm > +#endif > + > + This can be simplified as: .macro asm_stack_frame_non_standard func #ifdef CONFIG_STACK_VALIDATION [...] #endif .endm > #endif /* __ASM_ASSEMBLER_H */ > Cheers, -- Julien Thierry