aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-24 10:21:53 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 03:14:03 -0400
commitef8c1a2d0e990d0f4f15e1d45eeb262755e3d4c3 (patch)
treea0d395b587d7093c731373bc6fab42d121b00a1d /arch
parent26ccb8a7183eed424ff9c874c83af20dafe7cdef (diff)
x86: don't use word-size specifiers on getuser_64.
The instructions access registers, so the size is 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')
-rw-r--r--arch/x86/lib/getuser_64.S28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/lib/getuser_64.S b/arch/x86/lib/getuser_64.S
index 0ec7890f9dcc..6134752a75fd 100644
--- a/arch/x86/lib/getuser_64.S
+++ b/arch/x86/lib/getuser_64.S
@@ -37,57 +37,57 @@
37ENTRY(__get_user_1) 37ENTRY(__get_user_1)
38 CFI_STARTPROC 38 CFI_STARTPROC
39 GET_THREAD_INFO(%rdx) 39 GET_THREAD_INFO(%rdx)
40 cmpq TI_addr_limit(%rdx),%rax 40 cmp TI_addr_limit(%rdx),%rax
41 jae bad_get_user 41 jae bad_get_user
421: movzb (%rax),%edx 421: movzb (%rax),%edx
43 xorl %eax,%eax 43 xor %eax,%eax
44 ret 44 ret
45 CFI_ENDPROC 45 CFI_ENDPROC
46ENDPROC(__get_user_1) 46ENDPROC(__get_user_1)
47 47
48ENTRY(__get_user_2) 48ENTRY(__get_user_2)
49 CFI_STARTPROC 49 CFI_STARTPROC
50 addq $1,%rax 50 add $1,%rax
51 jc bad_get_user 51 jc bad_get_user
52 GET_THREAD_INFO(%rdx) 52 GET_THREAD_INFO(%rdx)
53 cmpq TI_addr_limit(%rdx),%rax 53 cmp TI_addr_limit(%rdx),%rax
54 jae bad_get_user 54 jae bad_get_user
552: movzwl -1(%rax),%edx 552: movzwl -1(%rax),%edx
56 xorl %eax,%eax 56 xor %eax,%eax
57 ret 57 ret
58 CFI_ENDPROC 58 CFI_ENDPROC
59ENDPROC(__get_user_2) 59ENDPROC(__get_user_2)
60 60
61ENTRY(__get_user_4) 61ENTRY(__get_user_4)
62 CFI_STARTPROC 62 CFI_STARTPROC
63 addq $3,%rax 63 add $3,%rax
64 jc bad_get_user 64 jc bad_get_user
65 GET_THREAD_INFO(%rdx) 65 GET_THREAD_INFO(%rdx)
66 cmpq TI_addr_limit(%rdx),%rax 66 cmp TI_addr_limit(%rdx),%rax
67 jae bad_get_user 67 jae bad_get_user
683: movl -3(%rax),%edx 683: mov -3(%rax),%edx
69 xorl %eax,%eax 69 xor %eax,%eax
70 ret 70 ret
71 CFI_ENDPROC 71 CFI_ENDPROC
72ENDPROC(__get_user_4) 72ENDPROC(__get_user_4)
73 73
74ENTRY(__get_user_8) 74ENTRY(__get_user_8)
75 CFI_STARTPROC 75 CFI_STARTPROC
76 addq $7,%rax 76 add $7,%rax
77 jc bad_get_user 77 jc bad_get_user
78 GET_THREAD_INFO(%rdx) 78 GET_THREAD_INFO(%rdx)
79 cmpq TI_addr_limit(%rdx),%rax 79 cmp TI_addr_limit(%rdx),%rax
80 jae bad_get_user 80 jae bad_get_user
814: movq -7(%rax),%rdx 814: movq -7(%rax),%rdx
82 xorl %eax,%eax 82 xor %eax,%eax
83 ret 83 ret
84 CFI_ENDPROC 84 CFI_ENDPROC
85ENDPROC(__get_user_8) 85ENDPROC(__get_user_8)
86 86
87bad_get_user: 87bad_get_user:
88 CFI_STARTPROC 88 CFI_STARTPROC
89 xorl %edx,%edx 89 xor %edx,%edx
90 movq $(-EFAULT),%rax 90 mov $(-EFAULT),%rax
91 ret 91 ret
92 CFI_ENDPROC 92 CFI_ENDPROC
93END(bad_get_user) 93END(bad_get_user)