From: Ian Campbell Subject: Re: [PATCH] xen/arm: Correctly support WARN_ON Date: Thu, 3 Jul 2014 11:30:20 +0100 Message-ID: <1404383420.14865.53.camel@kazak.uk.xensource.com> References: <1404240719-13164-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X2eHZ-0002qe-NE for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 10:30:25 +0000 In-Reply-To: <1404240719-13164-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-07-01 at 19:51 +0100, Julien Grall wrote: > TODO: > I haven't yet hook the code on ARM64 as I'm not sure how undefined > instruction are handled. It looks like there is multiple way to get it > via HSR. I think EC==0x00 (the catchall) is where it will end up "The attempted execution of an instruction bit patterns that has no allocated instruction at the current Exception level". > +/* ARM doesn't provide any undefined instruction, make our own based on > + * a combination of bits which is not used by the instruction set > + */ > +#define BUG_INSTR 0xe7f000f0 Linux uses 0xe7f001f2. I'm not sure what the difference is but it seems safer to follow suit. Ian.