• Linus Torvalds's avatar
    Make x86 semaphore routines use register calling convention. · b5d748ca
    Linus Torvalds authored
    This avoids a bug where the compiler would overwrite the
    stackframe that the caller also considered to be a register
    save area.
    
    It also shrinks the code segment by a tiny amount by moving
    the failure case argument setup into the slow path. This not
    only makes the fast path smaller, but it makes it easier on
    gcc (gcc is not very good at generating code that uses fixed
    register names).
    b5d748ca
semaphore.c 6.98 KB