• Linus Torvalds's avatar
    i386: improve and correct inline asm memory constraints · b862f3b0
    Linus Torvalds authored
    Use "+m" rather than a combination of "=m" and "m" for improved clarity
    and consistency.
    
    This also fixes some inlines that incorrectly didn't tell the compiler
    that they read the old value at all, potentially causing the compiler to
    generate bogus code.  It appear that all of those potential bugs were
    hidden by the use of extra "volatile" specifiers on the data structures
    in question, though.
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b862f3b0
semaphore.h 5.04 KB