From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754787AbcEDUwX (ORCPT ); Wed, 4 May 2016 16:52:23 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57134 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752820AbcEDUwW (ORCPT ); Wed, 4 May 2016 16:52:22 -0400 Subject: Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention To: Borislav Petkov References: <57031D9D.801@gmail.com> <1459934085-7152-1-git-send-email-zengzhaoxiu@163.com> <87wpoay10o.fsf@tassilo.jf.intel.com> <20160407094333.GD3866@pd.tnic> <20160504184612.GC23257@pd.tnic> <5998407c-3497-22c1-45dc-a86afcb73c94@zytor.com> <20160504194101.GE23257@pd.tnic> <20160504202213.GF23257@pd.tnic> Cc: Brian Gerst , LKML , Dmitry Vyukov , Andi Kleen , zengzhaoxiu@163.com, Thomas Gleixner , Ingo Molnar , Denys Vlasenko , Andrew Morton , Kees Cook , Zhaoxiu Zeng , Andy Lutomirski , Peter Zijlstra From: "H. Peter Anvin" Message-ID: Date: Wed, 4 May 2016 13:51:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160504202213.GF23257@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/2016 01:22 PM, Borislav Petkov wrote: > On Wed, May 04, 2016 at 12:49:17PM -0700, H. Peter Anvin wrote: >> Sigh. Doesn't look like -Wa is going to help due to the lack of the >> equivalent of an -include option in gas. > > So much for the register "freedom" - I'll resurrect the hardcoded insn > bytes. :-\ > > Unless my gcc friends have some other ideas... There is the option of looking for assembler support for popcnt and only hard-code the register if not supported. This is where being able to insert a macro package would help... -hpa