Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758813AbYFPWwT (ORCPT ); Mon, 16 Jun 2008 18:52:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751586AbYFPWwJ (ORCPT ); Mon, 16 Jun 2008 18:52:09 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37299 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751363AbYFPWwH (ORCPT ); Mon, 16 Jun 2008 18:52:07 -0400 Message-ID: <4856EDD3.4080808@kernel.org> Date: Mon, 16 Jun 2008 15:48:51 -0700 From: "H. Peter Anvin" Organization: Linux Kernel Organization, Inc. User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Jeremy Fitzhardinge CC: the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86: make asm/asm.h work for asm code. References: <4856E3D3.2010207@goop.org> In-Reply-To: <4856E3D3.2010207@goop.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 31 Jeremy Fitzhardinge wrote: > This is useful for unifying some pieces of asm code. > > Signed-off-by: Jeremy Fitzhardinge Thinking about it some more, this should be possible to do cleaner like this: #ifdef CONFIG_X86_32 # ifdef __ASSEMBLY__ # define __ASM_SEL(a,b) a # else # define __ASM_SEL(a,b) " " #a " " # endif #else # ifdef __ASSEMBLY__ # define __ASM_SEL(a,b) b # else # define __ASM_SEL(a,b) " " #b " " # endif #endif #define _ASM_INC _ASM_SEL(incl,incq) #define _ASM_DEC _ASM_SEL(decl,decq) /* ... etc ... */ -- 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/