From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 097EFDE093 for ; Wed, 30 Apr 2008 05:36:41 +1000 (EST) Message-Id: <3BD17695-2826-43CC-98A0-16F3E33EDC43@kernel.crashing.org> From: Kumar Gala To: Scott Wood In-Reply-To: <20080429183559.GE6561@ld0162-tx32.am.freescale.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro Date: Tue, 29 Apr 2008 14:36:32 -0500 References: <20080429183559.GE6561@ld0162-tx32.am.freescale.net> Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Apr 29, 2008, at 1:35 PM, Scott Wood wrote: > 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@h; \ > > Can we use assembler macros rather than preprocessor macros to get > rid of > the backslashes? what's an assembler macro look like? I don't believe we use them anywhere else. - k