• J
    ix86: Tighten asmlinkage_protect() constraints · d59fe3f1
    Jan Beulich 提交于
    While the description of the commit that originally introduced
    asmlinkage_protect() validly says that this doesn't guarantee
    clobbering of the function arguments, using "m" constraints
    rather than "g" ones reduces the risk (by making it less
    attractive to the compiler to move those variables into
    registers) and generally results in better code (because we know
    the arguments are in memory anyway, and are frequently - if not
    always - used just once, with the second [compiler visible] use
    in asmlinkage_protect() itself being a fake one).
    Signed-off-by: NJan Beulich <jbeulich@suse.com>
    Cc: <roland@hack.frob.com>
    Cc: <viro@zeniv.linux.org.uk>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/50FE84EC02000078000B83B7@nat28.tlf.novell.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
    d59fe3f1
linkage.h 2.0 KB