• Borislav Petkov's avatar
    x86/lib/memset_64.S: Convert to ALTERNATIVE_2 macro · 84d95ad4
    Borislav Petkov authored
    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>
    84d95ad4
memset_64.S 2.69 KB