[PATCH] [POWERPC] convert transfer_to_handler into a macro

Scott Wood scottwood at freescale.com
Wed Apr 30 04:35:59 EST 2008


On Tue, Apr 29, 2008 at 08:56:56AM -0500, Kumar Gala wrote:
> +#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
> +#ifdef CONFIG_SMP
> +#define SMP_ADJUST_GLOBAL_DBCR0						       \
> +	rlwinm	r9,r1,0,0,(31-THREAD_SHIFT);				       \
> +	lwz	r9,TI_CPU(r9);						       \
> +	slwi	r9,r9,3;						       \
> +	add	r11,r11,r9;
> +#else
> +#define SMP_ADJUST_GLOBAL_DBCR0
> +#endif
> +#define HANDLE_DBCR							       \
> +	/* Check to see if the dbcr0 register is set up to debug.  Use the     \
> +	   internal debug mode bit to do this. */			       \
> +	lwz	r12,THREAD_DBCR0(r12);					       \
> +	andis.	r12,r12,DBCR0_IDM at h;					       \

Can we use assembler macros rather than preprocessor macros to get rid of
the backslashes?

-Scott



More information about the Linuxppc-dev mailing list