aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/putuser_32.S
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-24 16:36:31 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 03:14:12 -0400
commit2528de431ddb200653d1dc6ca90074bad9520f09 (patch)
tree2cce31204c0e6f810bdf8d1d013ea08e931575f7 /arch/x86/lib/putuser_32.S
parentefea505d83873cfc8a7cdbb8a2a11d2c67467843 (diff)
x86: use macros from asm.h.
In putuser_32.S and putuser_64.S, replace things like .quad, .long, and explicit references to [r|e]ax for the apropriate macros in asm/asm.h. 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/putuser_32.S')
-rw-r--r--arch/x86/lib/putuser_32.S43
1 files changed, 22 insertions, 21 deletions
diff --git a/arch/x86/lib/putuser_32.S b/arch/x86/lib/putuser_32.S
index b67a37cab1b0..e7eda34feb34 100644
--- a/arch/x86/lib/putuser_32.S
+++ b/arch/x86/lib/putuser_32.S
@@ -11,6 +11,7 @@
11#include <linux/linkage.h> 11#include <linux/linkage.h>
12#include <asm/dwarf2.h> 12#include <asm/dwarf2.h>
13#include <asm/thread_info.h> 13#include <asm/thread_info.h>
14#include <asm/asm.h>
14 15
15 16
16/* 17/*
@@ -26,50 +27,50 @@
26 */ 27 */
27 28
28#define ENTER CFI_STARTPROC ; \ 29#define ENTER CFI_STARTPROC ; \
29 GET_THREAD_INFO(%ebx) 30 GET_THREAD_INFO(%_ASM_BX)
30#define EXIT ret ; \ 31#define EXIT ret ; \
31 CFI_ENDPROC 32 CFI_ENDPROC
32 33
33.text 34.text
34ENTRY(__put_user_1) 35ENTRY(__put_user_1)
35 ENTER 36 ENTER
36 cmp TI_addr_limit(%ebx),%ecx 37 cmp TI_addr_limit(%_ASM_BX),%_ASM_CX
37 jae bad_put_user 38 jae bad_put_user
381: movb %al,(%ecx) 391: movb %al,(%_ASM_CX)
39 xor %eax,%eax 40 xor %eax,%eax
40 EXIT 41 EXIT
41ENDPROC(__put_user_1) 42ENDPROC(__put_user_1)
42 43
43ENTRY(__put_user_2) 44ENTRY(__put_user_2)
44 ENTER 45 ENTER
45 mov TI_addr_limit(%ebx),%ebx 46 mov TI_addr_limit(%_ASM_BX),%_ASM_BX
46 sub $1,%ebx 47 sub $1,%_ASM_BX
47 cmp %ebx,%ecx 48 cmp %_ASM_BX,%_ASM_CX
48 jae bad_put_user 49 jae bad_put_user
492: movw %ax,(%ecx) 502: movw %ax,(%_ASM_CX)
50 xor %eax,%eax 51 xor %eax,%eax
51 EXIT 52 EXIT
52ENDPROC(__put_user_2) 53ENDPROC(__put_user_2)
53 54
54ENTRY(__put_user_4) 55ENTRY(__put_user_4)
55 ENTER 56 ENTER
56 mov TI_addr_limit(%ebx),%ebx 57 mov TI_addr_limit(%_ASM_BX),%_ASM_BX
57 sub $3,%ebx 58 sub $3,%_ASM_BX
58 cmp %ebx,%ecx 59 cmp %_ASM_BX,%_ASM_CX
59 jae bad_put_user 60 jae bad_put_user
603: movl %eax,(%ecx) 613: movl %eax,(%_ASM_CX)
61 xor %eax,%eax 62 xor %eax,%eax
62 EXIT 63 EXIT
63ENDPROC(__put_user_4) 64ENDPROC(__put_user_4)
64 65
65ENTRY(__put_user_8) 66ENTRY(__put_user_8)
66 ENTER 67 ENTER
67 mov TI_addr_limit(%ebx),%ebx 68 mov TI_addr_limit(%_ASM_BX),%_ASM_BX
68 sub $7,%ebx 69 sub $7,%_ASM_BX
69 cmp %ebx,%ecx 70 cmp %_ASM_BX,%_ASM_CX
70 jae bad_put_user 71 jae bad_put_user
714: movl %eax,(%ecx) 724: movl %_ASM_AX,(%_ASM_CX)
725: movl %edx,4(%ecx) 735: movl %edx,4(%_ASM_CX)
73 xor %eax,%eax 74 xor %eax,%eax
74 EXIT 75 EXIT
75ENDPROC(__put_user_8) 76ENDPROC(__put_user_8)
@@ -81,9 +82,9 @@ bad_put_user:
81END(bad_put_user) 82END(bad_put_user)
82 83
83.section __ex_table,"a" 84.section __ex_table,"a"
84 .long 1b,bad_put_user 85 _ASM_PTR 1b,bad_put_user
85 .long 2b,bad_put_user 86 _ASM_PTR 2b,bad_put_user
86 .long 3b,bad_put_user 87 _ASM_PTR 3b,bad_put_user
87 .long 4b,bad_put_user 88 _ASM_PTR 4b,bad_put_user
88 .long 5b,bad_put_user 89 _ASM_PTR 5b,bad_put_user
89.previous 90.previous