summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-24 19:40:55 +0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 11:14:06 +0400
commit268cf048c890d10bd3a86bd87922ed8a722d502f (patch)
treef5ea14b5f422686a537561a37569c40722327d8a /arch/x86/lib
parent6c2d458680d49d939ffd4b4cdc84d9e004d65910 (diff)
downloadlinux-268cf048c890d10bd3a86bd87922ed8a722d502f.tar.xz
x86: don't save ebx in putuser_32.S.
Clobber it in the inline asm macros, and let the compiler do this for us. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/putuser_32.S13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/x86/lib/putuser_32.S b/arch/x86/lib/putuser_32.S
index f58fba109d18..5b2a926f0e28 100644
--- a/arch/x86/lib/putuser_32.S
+++ b/arch/x86/lib/putuser_32.S
@@ -26,14 +26,8 @@
*/
#define ENTER CFI_STARTPROC ; \
- pushl %ebx ; \
- CFI_ADJUST_CFA_OFFSET 4 ; \
- CFI_REL_OFFSET ebx, 0 ; \
GET_THREAD_INFO(%ebx)
-#define EXIT popl %ebx ; \
- CFI_ADJUST_CFA_OFFSET -4 ; \
- CFI_RESTORE ebx ; \
- ret ; \
+#define EXIT ret ; \
CFI_ENDPROC
.text
@@ -81,10 +75,7 @@ ENTRY(__put_user_8)
ENDPROC(__put_user_8)
bad_put_user:
- CFI_STARTPROC simple
- CFI_DEF_CFA esp, 2*4
- CFI_OFFSET eip, -1*4
- CFI_OFFSET ebx, -2*4
+ CFI_STARTPROC
movl $-14,%eax
EXIT
END(bad_put_user)