From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Desnoyers Subject: Re: [RFC PATCH for 5.2 10/10] rseq/selftests: mips: use break instruction for RSEQ_SIG Date: Wed, 24 Apr 2019 19:22:57 -0400 (EDT) Message-ID: <2047127593.1305.1556148177478.JavaMail.zimbra@efficios.com> References: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> <20190424152502.14246-11-mathieu.desnoyers@efficios.com> <20190424220609.4kryfcgsv46iu3ds@pburton-laptop> <2114325810.1301.1556147523476.JavaMail.zimbra@efficios.com> <20190424231717.os4p6fq7fbx6afxa@pburton-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190424231717.os4p6fq7fbx6afxa@pburton-laptop> Sender: linux-kernel-owner@vger.kernel.org To: Paul Burton Cc: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , linux-kernel , linux-api , Thomas Gleixner , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will List-Id: linux-api@vger.kernel.org ----- On Apr 24, 2019, at 7:17 PM, Paul Burton paul.burton@mips.com wrote: > Hi Mathieu, > > On Wed, Apr 24, 2019 at 07:12:03PM -0400, Mathieu Desnoyers wrote: >> Does the following comment above the forest of #ifdef work for you ? >> >> /* >> * RSEQ_SIG uses the break instruction. The instruction pattern is: >> * >> * On MIPS: >> * 0350000d break 0x350 >> * >> * On nanoMIPS32: >> * 00100350 break 0x350 >> * >> * On microMIPS: >> * 0000d407 break 0x350 >> * >> * For nanoMIPS32 and microMIPS, the instruction stream is encoded as 16-bit >> * halfwords, so the signature halfwords need to be swapped accordingly for >> * little-endian. >> */ > > I'd probably just say nanoMIPS rather than nanoMIPS32, because when we > get nanoMIPS64 in the future it'll be a superset of nanoMIPS32 & the > break encoding will be the same. Done. > > But otherwise it looks good to me :) Great! I've added your "Suggested-by" tag to the patch. Thanks, Mathieu > > Thanks, > Paul -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com