From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [RFC PATCH 13/16] powerpc/booke: Provide exception macros with interrupt name Date: Fri, 17 Feb 2012 19:50:23 +1100 Message-ID: <1329468623.2892.62.camel@pasglop> References: <20111221013440.GM8378@schlenkerla.am.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: agraf@suse.de, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org To: Scott Wood Return-path: Received: from gate.crashing.org ([63.228.1.57]:38745 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092Ab2BQIuj (ORCPT ); Fri, 17 Feb 2012 03:50:39 -0500 In-Reply-To: <20111221013440.GM8378@schlenkerla.am.freescale.net> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2011-12-20 at 19:34 -0600, Scott Wood wrote: > > There is an existing set of arbitrary numbers that Linux passes, > but it's an undocumented mess that sort of corresponds to > server/classic > exception vectors but not really. > > FIXME: Replace the existing trap numbering rather than add to it. While this is a good idea, the problem is that we do have quite a few things here or there that check regs->trap and act based on the trap number, so we'd have to find them all and replace those comparison with something symbolic. Cheers, Ben.