Skip to content
Commit 84d95ad4 authored by Borislav Petkov's avatar Borislav Petkov
Browse files

x86/lib/memset_64.S: Convert to ALTERNATIVE_2 macro



Make alternatives replace single JMPs instead of whole memset functions,
thus decreasing the amount of instructions copied during patching time
at boot.

While at it, make it use the REP_GOOD version by default which means
alternatives NOP out the JMP to the other versions, as REP_GOOD is set
by default on the majority of relevant x86 processors.

Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent a930dc45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment