Re: [patch 01/15] x86/irq: Convey vector as argument and not in ptregs

From: Andy Lutomirski
Date: Wed Feb 26 2020 - 00:13:51 EST


On Tue, Feb 25, 2020 at 3:26 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> Device interrupts which go through do_IRQ() or the spurious interrupt
> handler have their separate entry code on 64 bit for no good reason.
>
> Both 32 and 64 bit transport the vector number through ORIG_[RE]AX in
> pt_regs. Further the vector number is forced to fit into an u8 and is
> complemented and offset by 0x80 for historical reasons.
>
> Push the vector number into the error code slot instead and hand the plain
> vector number to the C functions.

Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>