Re: [patch 05/15] x86/entry: Provide IDTEnTRY_SYSVEC

From: Andy Lutomirski
Date: Wed Feb 26 2020 - 01:10:41 EST


On 2/25/20 2:47 PM, Thomas Gleixner wrote:
> Provide a IDTENTRY variant for system vectors to consolidate the differnt
> mechanisms to emit the ASM stubs for 32 an 64 bit.

$SUBJECT has an obvious typo.

>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> arch/x86/entry/entry_32.S | 4 ++++
> arch/x86/entry/entry_64.S | 19 +++++++++++++++----
> arch/x86/include/asm/idtentry.h | 25 +++++++++++++++++++++++++
> 3 files changed, 44 insertions(+), 4 deletions(-)
>
> --- a/arch/x86/entry/entry_32.S
> +++ b/arch/x86/entry/entry_32.S
> @@ -1261,6 +1261,10 @@ SYM_CODE_START_LOCAL(asm_\cfunc)
> SYM_CODE_END(asm_\cfunc)
> .endm
>
> +.macro idtentry_sysvec vector cfunc
> + idtentry \vector asm_\cfunc \cfunc has_error_code=0
> +.endm

irq_stack?

--Andy