Commit ef8c1a2d authored by Glauber Costa's avatar Glauber Costa Committed by Ingo Molnar

x86: don't use word-size specifiers on getuser_64.

The instructions access registers, so the size is unambiguous.
Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 26ccb8a7
...@@ -37,57 +37,57 @@ ...@@ -37,57 +37,57 @@
ENTRY(__get_user_1) ENTRY(__get_user_1)
CFI_STARTPROC CFI_STARTPROC
GET_THREAD_INFO(%rdx) GET_THREAD_INFO(%rdx)
cmpq TI_addr_limit(%rdx),%rax cmp TI_addr_limit(%rdx),%rax
jae bad_get_user jae bad_get_user
1: movzb (%rax),%edx 1: movzb (%rax),%edx
xorl %eax,%eax xor %eax,%eax
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(__get_user_1) ENDPROC(__get_user_1)
ENTRY(__get_user_2) ENTRY(__get_user_2)
CFI_STARTPROC CFI_STARTPROC
addq $1,%rax add $1,%rax
jc bad_get_user jc bad_get_user
GET_THREAD_INFO(%rdx) GET_THREAD_INFO(%rdx)
cmpq TI_addr_limit(%rdx),%rax cmp TI_addr_limit(%rdx),%rax
jae bad_get_user jae bad_get_user
2: movzwl -1(%rax),%edx 2: movzwl -1(%rax),%edx
xorl %eax,%eax xor %eax,%eax
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(__get_user_2) ENDPROC(__get_user_2)
ENTRY(__get_user_4) ENTRY(__get_user_4)
CFI_STARTPROC CFI_STARTPROC
addq $3,%rax add $3,%rax
jc bad_get_user jc bad_get_user
GET_THREAD_INFO(%rdx) GET_THREAD_INFO(%rdx)
cmpq TI_addr_limit(%rdx),%rax cmp TI_addr_limit(%rdx),%rax
jae bad_get_user jae bad_get_user
3: movl -3(%rax),%edx 3: mov -3(%rax),%edx
xorl %eax,%eax xor %eax,%eax
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(__get_user_4) ENDPROC(__get_user_4)
ENTRY(__get_user_8) ENTRY(__get_user_8)
CFI_STARTPROC CFI_STARTPROC
addq $7,%rax add $7,%rax
jc bad_get_user jc bad_get_user
GET_THREAD_INFO(%rdx) GET_THREAD_INFO(%rdx)
cmpq TI_addr_limit(%rdx),%rax cmp TI_addr_limit(%rdx),%rax
jae bad_get_user jae bad_get_user
4: movq -7(%rax),%rdx 4: movq -7(%rax),%rdx
xorl %eax,%eax xor %eax,%eax
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(__get_user_8) ENDPROC(__get_user_8)
bad_get_user: bad_get_user:
CFI_STARTPROC CFI_STARTPROC
xorl %edx,%edx xor %edx,%edx
movq $(-EFAULT),%rax mov $(-EFAULT),%rax
ret ret
CFI_ENDPROC CFI_ENDPROC
END(bad_get_user) END(bad_get_user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment