Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751004AbaLPLUK (ORCPT ); Tue, 16 Dec 2014 06:20:10 -0500 Received: from cantor2.suse.de ([195.135.220.15]:48587 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbaLPLUH (ORCPT ); Tue, 16 Dec 2014 06:20:07 -0500 Message-ID: <54901564.6070201@suse.com> Date: Tue, 16 Dec 2014 12:20:04 +0100 From: Juergen Gross User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: David Vrabel , linux-kernel@vger.kernel.org, x86@kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, mmarek@suse.cz, linux-kbuild@vger.kernel.org Subject: Re: [Xen-devel] [PATCH 4/4] xen: use generated hypercall symbols in arch/x86/xen/xen-head.S References: <1418321065-10212-1-git-send-email-jgross@suse.com> <1418321065-10212-5-git-send-email-jgross@suse.com> <548ECE9B.3040105@citrix.com> <548FC95E.70903@suse.com> <5490086D.2060808@citrix.com> In-Reply-To: <5490086D.2060808@citrix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/16/2014 11:24 AM, David Vrabel wrote: > On 16/12/14 05:55, Juergen Gross wrote: >> On 12/15/2014 01:05 PM, David Vrabel wrote: >>> On 11/12/14 18:04, Juergen Gross wrote: >>>> Instead of manually list each hypercall in arch/x86/xen/xen-head.S >>>> use the auto generated symbol list. >>>> >>>> This also corrects the wrong address of xen_hypercall_mca which was >>>> located 32 bytes higher than it should. >>>> >>>> Symbol addresses have been verified to match the correct ones via >>>> objdump output. >>> [...] >>>> + >>>> +#define HYPERCALL(n) \ >>>> + .equ xen_hypercall_##n, hypercall_page + __HYPERVISOR_##n * 32; \ >>>> + .type xen_hypercall_##n, function; .size xen_hypercall_##n, 32 >>>> +#include >>>> +#undef HYPERCALL >>> >>> The gas manual[1] suggests the syntax you've used for .type is invalid >>> and suggest using .type , STT_FUNC >> >> Really? In the link below I see: >> >> The types supported are: >> >> STT_FUNC >> function >> Mark the symbol as being a function name. >> ... >> >> So "function" seems to be okay. > >>From the manual > > The syntaxes supported are: > > .type STT_ > .type ,# > .type ,@ > .type ,% > .type ,"" > > And > > The first variant will be accepted by the GNU assembler on all > architectures... grepping through the x86 assembler sources .type ,@function seems to be the preferred syntax (100%). I think I'll switch to that. Juergen -- 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/