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>
This commit is contained in:
parent
edf10162b2
commit
9aa038815b
|
@ -29,44 +29,44 @@
|
||||||
ENTRY(__get_user_1)
|
ENTRY(__get_user_1)
|
||||||
CFI_STARTPROC
|
CFI_STARTPROC
|
||||||
GET_THREAD_INFO(%edx)
|
GET_THREAD_INFO(%edx)
|
||||||
cmpl TI_addr_limit(%edx),%eax
|
cmp TI_addr_limit(%edx),%eax
|
||||||
jae bad_get_user
|
jae bad_get_user
|
||||||
1: movzbl (%eax),%edx
|
1: movzb (%eax),%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
|
||||||
addl $1,%eax
|
add $1,%eax
|
||||||
jc bad_get_user
|
jc bad_get_user
|
||||||
GET_THREAD_INFO(%edx)
|
GET_THREAD_INFO(%edx)
|
||||||
cmpl TI_addr_limit(%edx),%eax
|
cmp TI_addr_limit(%edx),%eax
|
||||||
jae bad_get_user
|
jae bad_get_user
|
||||||
2: movzwl -1(%eax),%edx
|
2: movzwl -1(%eax),%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
|
||||||
addl $3,%eax
|
add $3,%eax
|
||||||
jc bad_get_user
|
jc bad_get_user
|
||||||
GET_THREAD_INFO(%edx)
|
GET_THREAD_INFO(%edx)
|
||||||
cmpl TI_addr_limit(%edx),%eax
|
cmp TI_addr_limit(%edx),%eax
|
||||||
jae bad_get_user
|
jae bad_get_user
|
||||||
3: movl -3(%eax),%edx
|
3: mov -3(%eax),%edx
|
||||||
xorl %eax,%eax
|
xor %eax,%eax
|
||||||
ret
|
ret
|
||||||
CFI_ENDPROC
|
CFI_ENDPROC
|
||||||
ENDPROC(__get_user_4)
|
ENDPROC(__get_user_4)
|
||||||
|
|
||||||
bad_get_user:
|
bad_get_user:
|
||||||
CFI_STARTPROC
|
CFI_STARTPROC
|
||||||
xorl %edx,%edx
|
xor %edx,%edx
|
||||||
movl $-14,%eax
|
mov $-14,%eax
|
||||||
ret
|
ret
|
||||||
CFI_ENDPROC
|
CFI_ENDPROC
|
||||||
END(bad_get_user)
|
END(bad_get_user)
|
||||||
|
|
Loading…
Reference in New Issue