mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 01:59:54 -04:00
x86/alternative: Convert alternative_io()
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20240607111701.8366-7-bp@kernel.org
This commit is contained in:
@@ -335,11 +335,7 @@ static inline int alternatives_text_reserved(void *start, void *end)
|
||||
|
||||
/* Like alternative_input, but with a single output argument */
|
||||
#define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
|
||||
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \
|
||||
: output : "i" (0), ## input)
|
||||
|
||||
#define n_alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
|
||||
asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \
|
||||
asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \
|
||||
: output : "i" (0), ## input)
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user