From: "Jan Beulich" Subject: Re: [PATCH v2] x86: move interrupt entry stubs to entry.S Date: Fri, 16 May 2014 08:35:03 +0100 Message-ID: <5375DBC70200007800012E59@mail.emea.novell.com> References: <1400206337-15589-1-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400206337-15589-1-git-send-email-feng.wu@intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu Cc: Andrew Cooper , keir.xen@gmail.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 16.05.14 at 04:12, wrote: > This patch removes the ugly macros in i8259.c and asm_defns.h, which is > used to build up the interrupt entry stubs. Move the definition of these > stubs to entry.S instead. I suppose you saw that Andrew posted a more comprehensive series with, among other things, the same effect as yours. I'm clearly tending towards taken his version, unless you can provide a good explanation of why yours is preferable. > --- a/xen/include/asm-x86/asm_defns.h > +++ b/xen/include/asm-x86/asm_defns.h > @@ -13,6 +13,8 @@ > > #ifndef __ASSEMBLY__ > void ret_from_intr(void); > +typedef void (*interrupt_stub_t)(void); > +extern const interrupt_stub_t interrupt[]; I don't see the point of the typedef, and I don't think the declaration is well placed in this header. Jan