From: Ian Campbell Subject: Re: [PATCH] arm: handy macro to force a break point in the Fast Model. Date: Mon, 23 Jul 2012 16:17:56 +0100 Message-ID: <1343056676.5797.53.camel@zakaz.uk.xensource.com> References: <1343055848-16198-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343055848-16198-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-07-23 at 16:04 +0100, Ian Campbell wrote: > Signed-off-by: Ian Campbell Just sending this for the benefit of the archives, not really worth applying, I don't think. > --- > xen/include/asm-arm/debugger.h | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/xen/include/asm-arm/debugger.h b/xen/include/asm-arm/debugger.h > index 452613a..8c6f527 100644 > --- a/xen/include/asm-arm/debugger.h > +++ b/xen/include/asm-arm/debugger.h > @@ -4,6 +4,13 @@ > #define debugger_trap_fatal(v, r) ((void) 0) > #define debugger_trap_immediate() ((void) 0) > > +/* Trigger a break point in the fast model... */ > +#define MODEL_BKPT() asm volatile(\ > + "mov r0, #0x18;\n /* angel_SWIreason_ReportException */\n"\ > + "mov r1, #0x20000;/* 0x20020= ADP_Stopped_BreakPoint */\n"\ > + "orr r1, r1, #0x20;\n"\ > + "swi 0x123456;\n" ::: "r0", "r1") > + > #endif /* __ARM_DEBUGGER_H__ */ > /* > * Local variables: