aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-02-12 02:14:48 -0500
committerH. Peter Anvin <hpa@zytor.com>2013-02-12 02:14:48 -0500
commit16640165c9079e2cf36fdcfca093f29663a716f7 (patch)
treed59440ab4262c4d9fa2fbd9ed8677545555b27c7 /arch/x86/lib
parentb390784dc1649f6e6c5e66e5f53c21e715ccf39b (diff)
x86: Be consistent with data size in getuser.S
Consistently use the data register by name and use a sized assembly instruction in getuser.S. There is never any reason to macroize it, and being inconsistent in the same file is just annoying. No actual code change. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/getuser.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/lib/getuser.S b/arch/x86/lib/getuser.S
index d3bf9f99ca77..a4512359656a 100644
--- a/arch/x86/lib/getuser.S
+++ b/arch/x86/lib/getuser.S
@@ -41,7 +41,7 @@ ENTRY(__get_user_1)
41 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX 41 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX
42 jae bad_get_user 42 jae bad_get_user
43 ASM_STAC 43 ASM_STAC
441: movzb (%_ASM_AX),%edx 441: movzbl (%_ASM_AX),%edx
45 xor %eax,%eax 45 xor %eax,%eax
46 ASM_CLAC 46 ASM_CLAC
47 ret 47 ret
@@ -71,7 +71,7 @@ ENTRY(__get_user_4)
71 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX 71 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX
72 jae bad_get_user 72 jae bad_get_user
73 ASM_STAC 73 ASM_STAC
743: mov -3(%_ASM_AX),%edx 743: movl -3(%_ASM_AX),%edx
75 xor %eax,%eax 75 xor %eax,%eax
76 ASM_CLAC 76 ASM_CLAC
77 ret 77 ret
@@ -87,7 +87,7 @@ ENTRY(__get_user_8)
87 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX 87 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX
88 jae bad_get_user 88 jae bad_get_user
89 ASM_STAC 89 ASM_STAC
904: movq -7(%_ASM_AX),%_ASM_DX 904: movq -7(%_ASM_AX),%rdx
91 xor %eax,%eax 91 xor %eax,%eax
92 ASM_CLAC 92 ASM_CLAC
93 ret 93 ret
@@ -98,8 +98,8 @@ ENTRY(__get_user_8)
98 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX 98 cmp TI_addr_limit(%_ASM_DX),%_ASM_AX
99 jae bad_get_user_8 99 jae bad_get_user_8
100 ASM_STAC 100 ASM_STAC
1014: mov -7(%_ASM_AX),%edx 1014: movl -7(%_ASM_AX),%edx
1025: mov -3(%_ASM_AX),%ecx 1025: movl -3(%_ASM_AX),%ecx
103 xor %eax,%eax 103 xor %eax,%eax
104 ASM_CLAC 104 ASM_CLAC
105 ret 105 ret