lkml.org 
[lkml]   [2005]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ppc32: Add support for Freescale e200 (Book-E) core
On Wed, Jun 22, 2005 at 03:41:09PM -0500, Kumar Gala wrote:

[snip]

> +#ifdef CONFIG_E200
> +#define DEBUG_EXCEPTION \
> + START_EXCEPTION(Debug); \
> + DEBUG_EXCEPTION_PROLOG; \
> + \
> + /* \
> + * If there is a single step or branch-taken exception in an \
> + * exception entry sequence, it was probably meant to apply to \
> + * the code where the exception occurred (since exception entry \
> + * doesn't turn off DE automatically). We simulate the effect \
> + * of turning off DE on entry to an exception handler by turning \
> + * off DE in the CSRR1 value and clearing the debug status. \
> + */ \
> + mfspr r10,SPRN_DBSR; /* check single-step/branch taken */ \
> + andis. r10,r10,DBSR_IC@h; \
> + beq+ 2f; \
> + \
> + lis r10,KERNELBASE@h; /* check if exception in vectors */ \
> + ori r10,r10,KERNELBASE@l; \

I think we can get rid of one instruction here :)

--
Eugene


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-23 00:15    [W:0.126 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site