aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/putuser_64.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib/putuser_64.S')
-rw-r--r--arch/x86/lib/putuser_64.S18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/lib/putuser_64.S b/arch/x86/lib/putuser_64.S
index 940796fa0d98..07028851064c 100644
--- a/arch/x86/lib/putuser_64.S
+++ b/arch/x86/lib/putuser_64.S
@@ -18,7 +18,7 @@
18 * 18 *
19 * Outputs: %rax is error code (0 or -EFAULT) 19 * Outputs: %rax is error code (0 or -EFAULT)
20 * 20 *
21 * %r8 is destroyed. 21 * %rbx is destroyed.
22 * 22 *
23 * These functions should not modify any other registers, 23 * These functions should not modify any other registers,
24 * as they get called from within inline assembly. 24 * as they get called from within inline assembly.
@@ -34,8 +34,8 @@
34 .text 34 .text
35ENTRY(__put_user_1) 35ENTRY(__put_user_1)
36 CFI_STARTPROC 36 CFI_STARTPROC
37 GET_THREAD_INFO(%r8) 37 GET_THREAD_INFO(%rbx)
38 cmpq TI_addr_limit(%r8),%rcx 38 cmpq TI_addr_limit(%rbx),%rcx
39 jae bad_put_user 39 jae bad_put_user
401: movb %dl,(%rcx) 401: movb %dl,(%rcx)
41 xorl %eax,%eax 41 xorl %eax,%eax
@@ -45,10 +45,10 @@ ENDPROC(__put_user_1)
45 45
46ENTRY(__put_user_2) 46ENTRY(__put_user_2)
47 CFI_STARTPROC 47 CFI_STARTPROC
48 GET_THREAD_INFO(%r8) 48 GET_THREAD_INFO(%rbx)
49 addq $1,%rcx 49 addq $1,%rcx
50 jc 20f 50 jc 20f
51 cmpq TI_addr_limit(%r8),%rcx 51 cmpq TI_addr_limit(%rbx),%rcx
52 jae 20f 52 jae 20f
53 decq %rcx 53 decq %rcx
542: movw %dx,(%rcx) 542: movw %dx,(%rcx)
@@ -61,10 +61,10 @@ ENDPROC(__put_user_2)
61 61
62ENTRY(__put_user_4) 62ENTRY(__put_user_4)
63 CFI_STARTPROC 63 CFI_STARTPROC
64 GET_THREAD_INFO(%r8) 64 GET_THREAD_INFO(%rbx)
65 addq $3,%rcx 65 addq $3,%rcx
66 jc 30f 66 jc 30f
67 cmpq TI_addr_limit(%r8),%rcx 67 cmpq TI_addr_limit(%rbx),%rcx
68 jae 30f 68 jae 30f
69 subq $3,%rcx 69 subq $3,%rcx
703: movl %edx,(%rcx) 703: movl %edx,(%rcx)
@@ -77,10 +77,10 @@ ENDPROC(__put_user_4)
77 77
78ENTRY(__put_user_8) 78ENTRY(__put_user_8)
79 CFI_STARTPROC 79 CFI_STARTPROC
80 GET_THREAD_INFO(%r8) 80 GET_THREAD_INFO(%rbx)
81 addq $7,%rcx 81 addq $7,%rcx
82 jc 40f 82 jc 40f
83 cmpq TI_addr_limit(%r8),%rcx 83 cmpq TI_addr_limit(%rbx),%rcx
84 jae 40f 84 jae 40f
85 subq $7,%rcx 85 subq $7,%rcx
864: movq %rdx,(%rcx) 864: movq %rdx,(%rcx)