Skip to content
  • Daniel Thompson's avatar
    arm64: alternative: Provide if/else/endif assembler macros · 63e40815
    Daniel Thompson authored
    
    
    The existing alternative_insn macro has some limitations that make it
    hard to work with. In particular the fact it takes instructions from it
    own macro arguments means it doesn't play very nicely with C pre-processor
    macros because the macro arguments look like a string to the C
    pre-processor. Workarounds are (probably) possible but things start to
    look ugly.
    
    Introduce an alternative set of macros that allows instructions to be
    presented to the assembler as normal and switch everything over to the
    new macros.
    
    Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    63e40815