From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Date: Fri, 17 Feb 2012 08:50:23 +0000 Subject: Re: [RFC PATCH 13/16] powerpc/booke: Provide exception macros with interrupt name Message-Id: <1329468623.2892.62.camel@pasglop> List-Id: References: <20111221013440.GM8378@schlenkerla.am.freescale.net> In-Reply-To: <20111221013440.GM8378@schlenkerla.am.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Scott Wood Cc: agraf@suse.de, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org 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.