diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-24 16:36:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 03:14:12 -0400 |
commit | 2528de431ddb200653d1dc6ca90074bad9520f09 (patch) | |
tree | 2cce31204c0e6f810bdf8d1d013ea08e931575f7 /arch/x86/lib/putuser_32.S | |
parent | efea505d83873cfc8a7cdbb8a2a11d2c67467843 (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.S | 43 |
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 |
34 | ENTRY(__put_user_1) | 35 | ENTRY(__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 |
38 | 1: movb %al,(%ecx) | 39 | 1: movb %al,(%_ASM_CX) |
39 | xor %eax,%eax | 40 | xor %eax,%eax |
40 | EXIT | 41 | EXIT |
41 | ENDPROC(__put_user_1) | 42 | ENDPROC(__put_user_1) |
42 | 43 | ||
43 | ENTRY(__put_user_2) | 44 | ENTRY(__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 |
49 | 2: movw %ax,(%ecx) | 50 | 2: movw %ax,(%_ASM_CX) |
50 | xor %eax,%eax | 51 | xor %eax,%eax |
51 | EXIT | 52 | EXIT |
52 | ENDPROC(__put_user_2) | 53 | ENDPROC(__put_user_2) |
53 | 54 | ||
54 | ENTRY(__put_user_4) | 55 | ENTRY(__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 |
60 | 3: movl %eax,(%ecx) | 61 | 3: movl %eax,(%_ASM_CX) |
61 | xor %eax,%eax | 62 | xor %eax,%eax |
62 | EXIT | 63 | EXIT |
63 | ENDPROC(__put_user_4) | 64 | ENDPROC(__put_user_4) |
64 | 65 | ||
65 | ENTRY(__put_user_8) | 66 | ENTRY(__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 |
71 | 4: movl %eax,(%ecx) | 72 | 4: movl %_ASM_AX,(%_ASM_CX) |
72 | 5: movl %edx,4(%ecx) | 73 | 5: movl %edx,4(%_ASM_CX) |
73 | xor %eax,%eax | 74 | xor %eax,%eax |
74 | EXIT | 75 | EXIT |
75 | ENDPROC(__put_user_8) | 76 | ENDPROC(__put_user_8) |
@@ -81,9 +82,9 @@ bad_put_user: | |||
81 | END(bad_put_user) | 82 | END(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 |