[RFC PATCH 13/16] powerpc/booke: Provide exception macros with interrupt name

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Feb 17 19:50:23 EST 2012


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.




More information about the Linuxppc-dev mailing list