diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-24 15:59:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 03:14:11 -0400 |
commit | efea505d83873cfc8a7cdbb8a2a11d2c67467843 (patch) | |
tree | 51a88066d621bb5750834f92e36a1d572ffb7963 /arch/x86 | |
parent | 766ed4282114eab616741107745b0dd11075e496 (diff) |
x86: don't use word-size specifiers in putuser files.
Remove them where unambiguous.
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')
-rw-r--r-- | arch/x86/lib/putuser_32.S | 28 | ||||
-rw-r--r-- | arch/x86/lib/putuser_64.S | 14 |
2 files changed, 21 insertions, 21 deletions
diff --git a/arch/x86/lib/putuser_32.S b/arch/x86/lib/putuser_32.S index 5b2a926f0e28..b67a37cab1b0 100644 --- a/arch/x86/lib/putuser_32.S +++ b/arch/x86/lib/putuser_32.S | |||
@@ -33,44 +33,44 @@ | |||
33 | .text | 33 | .text |
34 | ENTRY(__put_user_1) | 34 | ENTRY(__put_user_1) |
35 | ENTER | 35 | ENTER |
36 | cmpl TI_addr_limit(%ebx),%ecx | 36 | cmp TI_addr_limit(%ebx),%ecx |
37 | jae bad_put_user | 37 | jae bad_put_user |
38 | 1: movb %al,(%ecx) | 38 | 1: movb %al,(%ecx) |
39 | xorl %eax,%eax | 39 | xor %eax,%eax |
40 | EXIT | 40 | EXIT |
41 | ENDPROC(__put_user_1) | 41 | ENDPROC(__put_user_1) |
42 | 42 | ||
43 | ENTRY(__put_user_2) | 43 | ENTRY(__put_user_2) |
44 | ENTER | 44 | ENTER |
45 | movl TI_addr_limit(%ebx),%ebx | 45 | mov TI_addr_limit(%ebx),%ebx |
46 | subl $1,%ebx | 46 | sub $1,%ebx |
47 | cmpl %ebx,%ecx | 47 | cmp %ebx,%ecx |
48 | jae bad_put_user | 48 | jae bad_put_user |
49 | 2: movw %ax,(%ecx) | 49 | 2: movw %ax,(%ecx) |
50 | xorl %eax,%eax | 50 | xor %eax,%eax |
51 | EXIT | 51 | EXIT |
52 | ENDPROC(__put_user_2) | 52 | ENDPROC(__put_user_2) |
53 | 53 | ||
54 | ENTRY(__put_user_4) | 54 | ENTRY(__put_user_4) |
55 | ENTER | 55 | ENTER |
56 | movl TI_addr_limit(%ebx),%ebx | 56 | mov TI_addr_limit(%ebx),%ebx |
57 | subl $3,%ebx | 57 | sub $3,%ebx |
58 | cmpl %ebx,%ecx | 58 | cmp %ebx,%ecx |
59 | jae bad_put_user | 59 | jae bad_put_user |
60 | 3: movl %eax,(%ecx) | 60 | 3: movl %eax,(%ecx) |
61 | xorl %eax,%eax | 61 | xor %eax,%eax |
62 | EXIT | 62 | EXIT |
63 | ENDPROC(__put_user_4) | 63 | ENDPROC(__put_user_4) |
64 | 64 | ||
65 | ENTRY(__put_user_8) | 65 | ENTRY(__put_user_8) |
66 | ENTER | 66 | ENTER |
67 | movl TI_addr_limit(%ebx),%ebx | 67 | mov TI_addr_limit(%ebx),%ebx |
68 | subl $7,%ebx | 68 | sub $7,%ebx |
69 | cmpl %ebx,%ecx | 69 | cmp %ebx,%ecx |
70 | jae bad_put_user | 70 | jae bad_put_user |
71 | 4: movl %eax,(%ecx) | 71 | 4: movl %eax,(%ecx) |
72 | 5: movl %edx,4(%ecx) | 72 | 5: movl %edx,4(%ecx) |
73 | xorl %eax,%eax | 73 | xor %eax,%eax |
74 | EXIT | 74 | EXIT |
75 | ENDPROC(__put_user_8) | 75 | ENDPROC(__put_user_8) |
76 | 76 | ||
diff --git a/arch/x86/lib/putuser_64.S b/arch/x86/lib/putuser_64.S index 6d7513bf885e..c18fc0f5256c 100644 --- a/arch/x86/lib/putuser_64.S +++ b/arch/x86/lib/putuser_64.S | |||
@@ -39,10 +39,10 @@ | |||
39 | .text | 39 | .text |
40 | ENTRY(__put_user_1) | 40 | ENTRY(__put_user_1) |
41 | ENTER | 41 | ENTER |
42 | cmpq TI_addr_limit(%rbx),%rcx | 42 | cmp TI_addr_limit(%rbx),%rcx |
43 | jae bad_put_user | 43 | jae bad_put_user |
44 | 1: movb %al,(%rcx) | 44 | 1: movb %al,(%rcx) |
45 | xorl %eax,%eax | 45 | xor %eax,%eax |
46 | EXIT | 46 | EXIT |
47 | ENDPROC(__put_user_1) | 47 | ENDPROC(__put_user_1) |
48 | 48 | ||
@@ -50,10 +50,10 @@ ENTRY(__put_user_2) | |||
50 | ENTER | 50 | ENTER |
51 | mov TI_addr_limit(%rbx),%rbx | 51 | mov TI_addr_limit(%rbx),%rbx |
52 | sub $1, %rbx | 52 | sub $1, %rbx |
53 | cmpq %rbx ,%rcx | 53 | cmp %rbx ,%rcx |
54 | jae bad_put_user | 54 | jae bad_put_user |
55 | 2: movw %ax,(%rcx) | 55 | 2: movw %ax,(%rcx) |
56 | xorl %eax,%eax | 56 | xor %eax,%eax |
57 | EXIT | 57 | EXIT |
58 | ENDPROC(__put_user_2) | 58 | ENDPROC(__put_user_2) |
59 | 59 | ||
@@ -64,7 +64,7 @@ ENTRY(__put_user_4) | |||
64 | cmp %rbx, %rcx | 64 | cmp %rbx, %rcx |
65 | jae bad_put_user | 65 | jae bad_put_user |
66 | 3: movl %eax,(%rcx) | 66 | 3: movl %eax,(%rcx) |
67 | xorl %eax,%eax | 67 | xor %eax,%eax |
68 | EXIT | 68 | EXIT |
69 | ENDPROC(__put_user_4) | 69 | ENDPROC(__put_user_4) |
70 | 70 | ||
@@ -75,13 +75,13 @@ ENTRY(__put_user_8) | |||
75 | cmp %rbx, %rcx | 75 | cmp %rbx, %rcx |
76 | jae bad_put_user | 76 | jae bad_put_user |
77 | 4: movq %rax,(%rcx) | 77 | 4: movq %rax,(%rcx) |
78 | xorl %eax,%eax | 78 | xor %eax,%eax |
79 | EXIT | 79 | EXIT |
80 | ENDPROC(__put_user_8) | 80 | ENDPROC(__put_user_8) |
81 | 81 | ||
82 | bad_put_user: | 82 | bad_put_user: |
83 | CFI_STARTPROC | 83 | CFI_STARTPROC |
84 | movq $(-EFAULT),%rax | 84 | mov $(-EFAULT),%rax |
85 | EXIT | 85 | EXIT |
86 | END(bad_put_user) | 86 | END(bad_put_user) |
87 | 87 | ||