mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02: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:
parent
bb91576965
commit
ad36085ee3
|
|
@ -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)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user