From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien.grall@arm.com (Julien Grall) Date: Wed, 23 May 2018 10:23:20 +0100 Subject: [PATCH 02/14] arm64: Call ARCH_WORKAROUND_2 on transitions between EL0 and EL1 In-Reply-To: <20180522150648.28297-3-marc.zyngier@arm.com> References: <20180522150648.28297-1-marc.zyngier@arm.com> <20180522150648.28297-3-marc.zyngier@arm.com> Message-ID: <0b03ce12-510e-464b-63de-cd481d7cb1c5@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Marc, On 05/22/2018 04:06 PM, Marc Zyngier wrote: > diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S > index ec2ee720e33e..f33e6aed3037 100644 > --- a/arch/arm64/kernel/entry.S > +++ b/arch/arm64/kernel/entry.S > @@ -18,6 +18,7 @@ > * along with this program. If not, see . > */ > > +#include > #include > #include > > @@ -137,6 +138,18 @@ alternative_else_nop_endif > add \dst, \dst, #(\sym - .entry.tramp.text) > .endm > > + // This macro corrupts x0-x3. It is the caller's duty > + // to save/restore them if required. NIT: Shouldn't you use /* ... */ for multi-line comments? Regardless that: Reviewed-by: Julien Grall Cheers, -- Julien Grall