diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-13 21:41:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 03:14:00 -0400 |
commit | 9aa038815b5756e20a00b8e1efd5740434b37aea (patch) | |
tree | c85b3f1bb351718702b400597f20683eec7ebf21 /arch/x86/lib | |
parent | edf10162b2c5ad78ada8e63e960f9d0949c6c219 (diff) |
x86: don't use word-size specifiers.
Since the instructions refer to registers, they'll be able
to figure it out.
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/getuser_32.S | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/x86/lib/getuser_32.S b/arch/x86/lib/getuser_32.S index 6d84b53f12a2..8200fde55f57 100644 --- a/arch/x86/lib/getuser_32.S +++ b/arch/x86/lib/getuser_32.S | |||
@@ -29,44 +29,44 @@ | |||
29 | ENTRY(__get_user_1) | 29 | ENTRY(__get_user_1) |
30 | CFI_STARTPROC | 30 | CFI_STARTPROC |
31 | GET_THREAD_INFO(%edx) | 31 | GET_THREAD_INFO(%edx) |
32 | cmpl TI_addr_limit(%edx),%eax | 32 | cmp TI_addr_limit(%edx),%eax |
33 | jae bad_get_user | 33 | jae bad_get_user |
34 | 1: movzbl (%eax),%edx | 34 | 1: movzb (%eax),%edx |
35 | xorl %eax,%eax | 35 | xor %eax,%eax |
36 | ret | 36 | ret |
37 | CFI_ENDPROC | 37 | CFI_ENDPROC |
38 | ENDPROC(__get_user_1) | 38 | ENDPROC(__get_user_1) |
39 | 39 | ||
40 | ENTRY(__get_user_2) | 40 | ENTRY(__get_user_2) |
41 | CFI_STARTPROC | 41 | CFI_STARTPROC |
42 | addl $1,%eax | 42 | add $1,%eax |
43 | jc bad_get_user | 43 | jc bad_get_user |
44 | GET_THREAD_INFO(%edx) | 44 | GET_THREAD_INFO(%edx) |
45 | cmpl TI_addr_limit(%edx),%eax | 45 | cmp TI_addr_limit(%edx),%eax |
46 | jae bad_get_user | 46 | jae bad_get_user |
47 | 2: movzwl -1(%eax),%edx | 47 | 2: movzwl -1(%eax),%edx |
48 | xorl %eax,%eax | 48 | xor %eax,%eax |
49 | ret | 49 | ret |
50 | CFI_ENDPROC | 50 | CFI_ENDPROC |
51 | ENDPROC(__get_user_2) | 51 | ENDPROC(__get_user_2) |
52 | 52 | ||
53 | ENTRY(__get_user_4) | 53 | ENTRY(__get_user_4) |
54 | CFI_STARTPROC | 54 | CFI_STARTPROC |
55 | addl $3,%eax | 55 | add $3,%eax |
56 | jc bad_get_user | 56 | jc bad_get_user |
57 | GET_THREAD_INFO(%edx) | 57 | GET_THREAD_INFO(%edx) |
58 | cmpl TI_addr_limit(%edx),%eax | 58 | cmp TI_addr_limit(%edx),%eax |
59 | jae bad_get_user | 59 | jae bad_get_user |
60 | 3: movl -3(%eax),%edx | 60 | 3: mov -3(%eax),%edx |
61 | xorl %eax,%eax | 61 | xor %eax,%eax |
62 | ret | 62 | ret |
63 | CFI_ENDPROC | 63 | CFI_ENDPROC |
64 | ENDPROC(__get_user_4) | 64 | ENDPROC(__get_user_4) |
65 | 65 | ||
66 | bad_get_user: | 66 | bad_get_user: |
67 | CFI_STARTPROC | 67 | CFI_STARTPROC |
68 | xorl %edx,%edx | 68 | xor %edx,%edx |
69 | movl $-14,%eax | 69 | mov $-14,%eax |
70 | ret | 70 | ret |
71 | CFI_ENDPROC | 71 | CFI_ENDPROC |
72 | END(bad_get_user) | 72 | END(bad_get_user) |