Re: [PATCH v2 2/2] x86: paravirt: make native_save_fl extern inline

From: H. Peter Anvin
Date: Tue Jun 05 2018 - 13:31:11 EST


This is a multi-part message in MIME format.On 06/05/18 10:05, Nick Desaulniers wrote:
> +
> +/*
> + * void native_restore_fl(unsigned long flags)
> + * %rdi: flags
> + */
> +ENTRY(native_restore_fl)
> + push %_ASM_DI
> + popf
> + ret
> +ENDPROC(native_restore_fl)
> +EXPORT_SYMBOL(native_restore_fl)
>

To work on i386, this would have to be %_ASM_AX in that case.

Something like this added to <asm/asm.h> might be useful; then you can
simply:

push %_ASM_ARG1