• Mark Rutland's avatar
    arm64: atomic_lse: match asm register sizes · 8997c934
    Mark Rutland authored
    The LSE atomic code uses asm register variables to ensure that
    parameters are allocated in specific registers. In the majority of cases
    we specifically ask for an x register when using 64-bit values, but in a
    couple of cases we use a w regsiter for a 64-bit value.
    
    For asm register variables, the compiler only cares about the register
    index, with wN and xN having the same meaning. The compiler determines
    the register size to use based on the type of the variable. Thus, this
    inconsistency is merely confusing, and not harmful to code generation.
    
    For consistency, this patch updates those cases to use the x register
    alias. There should be no functional change as a result of this patch.
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    8997c934
atomic_lse.h 14.8 KB