• Catalin Marinas's avatar
    [ARM PATCH] 1881/1: Illegal strex instruction generated by gcc · 2b01a2d3
    Catalin Marinas authored
    Patch from Catalin Marinas
    
    The _raw_write_(try)lock functions in include/asm-arm/spinlock.h
    
    should use the early clobber modifier (&) for the "tmp" register.
    
    A newer compiler (gcc-3.4.0) generates an "strexeq %0, %1, [%2]"
    
    instruction where %0 is the same as %2, which is illegal.
    2b01a2d3
spinlock.h 3.27 KB