aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/linkage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/linkage.h')
-rw-r--r--include/asm-x86/linkage.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-x86/linkage.h b/include/asm-x86/linkage.h
index d605eeba0f70..c048353f4b85 100644
--- a/include/asm-x86/linkage.h
+++ b/include/asm-x86/linkage.h
@@ -14,6 +14,17 @@
14 */ 14 */
15#define asmregparm __attribute__((regparm(3))) 15#define asmregparm __attribute__((regparm(3)))
16 16
17/*
18 * Make sure the compiler doesn't do anything stupid with the
19 * arguments on the stack - they are owned by the *caller*, not
20 * the callee. This just fools gcc into not spilling into them,
21 * and keeps it from doing tailcall recursion and/or using the
22 * stack slots for temporaries, since they are live and "used"
23 * all the way to the end of the function.
24 *
25 * NOTE! On x86-64, all the arguments are in registers, so this
26 * only matters on a 32-bit kernel.
27 */
17#define asmlinkage_protect(n, ret, args...) \ 28#define asmlinkage_protect(n, ret, args...) \
18 __asmlinkage_protect##n(ret, ##args) 29 __asmlinkage_protect##n(ret, ##args)
19#define __asmlinkage_protect_n(ret, args...) \ 30#define __asmlinkage_protect_n(ret, args...) \