aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/linkage.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-05-26 18:21:13 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 19:16:16 -0400
commitd68b8622ccbee8a18e495ad1650c3306f2eeb0d6 (patch)
tree7ec334394d78055de4d085c354c2931390c229f0 /include/asm-i386/linkage.h
parent4ec5240ec367a592834385893200dd4fb369354c (diff)
[PATCH] i386: fix prevent_tail_call
We fixed this bug before, but it didn't take. It may have been the case that the problem was first noticed to occur in a CONFIG_REGPARM compile. But it's not regparm functions that need not to make tail calls, it's asmlinkage functions called with a user pt_regs frame on the stack supplying their arguments. prevent_tail_call probably doesn't do anything at all in regparm functions (your argument registers are going to be clobbered, period). It was a braino to conditionalize that definition in the first place. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386/linkage.h')
-rw-r--r--include/asm-i386/linkage.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/asm-i386/linkage.h b/include/asm-i386/linkage.h
index af3d8571c5c7..f4a6ebac0247 100644
--- a/include/asm-i386/linkage.h
+++ b/include/asm-i386/linkage.h
@@ -5,9 +5,7 @@
5#define FASTCALL(x) x __attribute__((regparm(3))) 5#define FASTCALL(x) x __attribute__((regparm(3)))
6#define fastcall __attribute__((regparm(3))) 6#define fastcall __attribute__((regparm(3)))
7 7
8#ifdef CONFIG_REGPARM 8#define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret))
9# define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret))
10#endif
11 9
12#ifdef CONFIG_X86_ALIGNMENT_16 10#ifdef CONFIG_X86_ALIGNMENT_16
13#define __ALIGN .align 16,0x90 11#define __ALIGN .align 16,0x90