ix86: Tighten asmlinkage_protect() constraints
authorJan Beulich <JBeulich@suse.com>
Tue, 22 Jan 2013 11:24:12 +0000 (11:24 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 24 Jan 2013 10:25:59 +0000 (11:25 +0100)
commitd59fe3f13d070489e63d04e1c9bfd819d5f71542
treee48621769d74d9e9c583cdd6d284a8f7750b5ee5
parentff7532ca2c631e7e96dcd305a967b610259dc0ea
ix86: Tighten asmlinkage_protect() constraints

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: Jan 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.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/linkage.h
This page took 0.026377 seconds and 5 git commands to generate.