Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757242AbZKEOXt (ORCPT ); Thu, 5 Nov 2009 09:23:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757103AbZKEOXs (ORCPT ); Thu, 5 Nov 2009 09:23:48 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:38553 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756993AbZKEOXs (ORCPT ); Thu, 5 Nov 2009 09:23:48 -0500 Date: Thu, 5 Nov 2009 09:23:36 -0500 From: Herbert Xu To: Huang Ying Cc: Ingo Molnar , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" Subject: Re: [PATCH 1/2] x86, crypto, Generate .byte code for some new instructions via gas macro Message-ID: <20091105142336.GB1910@gondor.apana.org.au> References: <1257403455.22519.249.camel@yhuang-dev.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1257403455.22519.249.camel@yhuang-dev.sh.intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 31 On Thu, Nov 05, 2009 at 02:44:15PM +0800, Huang Ying wrote: > It will take some time for binutils (gas) to support some newly added > instructions, such as SSE4.1 instructions or the AES-NI instructions > found in upcoming Intel CPU. > > To make the source code can be compiled by old binutils, .byte code is > used instead of the assembly instruction. But the readability and > flexibility of raw .byte code is not good. > > This patch solves the issue of raw .byte code via generating it via > assembly instruction like gas macro. The syntax is as close as > possible to real assembly instruction. > > Some helper macros such as MODRM is not a full feature > implementation. It can be extended when necessary. > > Signed-off-by: Huang Ying Once Ingo acks this I'll throw it into cryptodev. Thanks! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/