From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH 1/2] KVM: PPC: booke: Allow multiple exception types Date: Thu, 26 Jul 2012 18:01:22 -0500 Message-ID: <5011CC42.7070708@freescale.com> References: <1343280734-3359-1-git-send-email-Bharat.Bhushan@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: , , , Bharat Bhushan To: Bharat Bhushan Return-path: Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:6178 "EHLO tx2outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819Ab2GZXB2 (ORCPT ); Thu, 26 Jul 2012 19:01:28 -0400 In-Reply-To: <1343280734-3359-1-git-send-email-Bharat.Bhushan@freescale.com> Sender: kvm-owner@vger.kernel.org List-ID: On 07/26/2012 12:32 AM, Bharat Bhushan wrote: > _GLOBAL(kvmppc_handlers_start) > KVM_HANDLER BOOKE_INTERRUPT_CRITICAL SPRN_SPRG_RSCRATCH_CRIT SPRN_CSRR0 > KVM_HANDLER BOOKE_INTERRUPT_MACHINE_CHECK SPRN_SPRG_RSCRATCH_MC SPRN_MCSRR0 > @@ -94,6 +98,7 @@ KVM_HANDLER BOOKE_INTERRUPT_DEBUG SPRN_SPRG_RSCRATCH_CRIT SPRN_CSRR0 > KVM_HANDLER BOOKE_INTERRUPT_SPE_UNAVAIL SPRN_SPRG_RSCRATCH0 SPRN_SRR0 > KVM_HANDLER BOOKE_INTERRUPT_SPE_FP_DATA SPRN_SPRG_RSCRATCH0 SPRN_SRR0 > KVM_HANDLER BOOKE_INTERRUPT_SPE_FP_ROUND SPRN_SPRG_RSCRATCH0 SPRN_SRR0 > +KVM_HANDLER BOOKE_INTERRUPT_END SPRN_SPRG_RSCRATCH0 SPRN_SRR0 If you just need a symbol at the end of the last real handler, do something like _GLOBAL(kvmppc_handlers_end), and reference that in the table of handlers. We don't need to instantiate a full handler for it, or make up a fake interrupt number. -Scott