Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100057
b: refs/heads/master
c: 0ada316
h: refs/heads/master
i:
  100055: f41fb6a
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent d1f5113 commit c1faab4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 770546b99fb99e71a3aa4181980d42664f9c18bd
refs/heads/master: 0ada3164031162b4e1b7ff6b36ba8cc80ff7fe96
8 changes: 4 additions & 4 deletions trunk/arch/x86/lib/putuser_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ENTRY(__put_user_1)
GET_THREAD_INFO(%rbx)
cmpq TI_addr_limit(%rbx),%rcx
jae bad_put_user
1: movb %dl,(%rcx)
1: movb %al,(%rcx)
xorl %eax,%eax
ret
CFI_ENDPROC
Expand All @@ -51,7 +51,7 @@ ENTRY(__put_user_2)
cmpq TI_addr_limit(%rbx),%rcx
jae 20f
decq %rcx
2: movw %dx,(%rcx)
2: movw %ax,(%rcx)
xorl %eax,%eax
ret
20: decq %rcx
Expand All @@ -67,7 +67,7 @@ ENTRY(__put_user_4)
cmpq TI_addr_limit(%rbx),%rcx
jae 30f
subq $3,%rcx
3: movl %edx,(%rcx)
3: movl %eax,(%rcx)
xorl %eax,%eax
ret
30: subq $3,%rcx
Expand All @@ -83,7 +83,7 @@ ENTRY(__put_user_8)
cmpq TI_addr_limit(%rbx),%rcx
jae 40f
subq $7,%rcx
4: movq %rdx,(%rcx)
4: movq %rax,(%rcx)
xorl %eax,%eax
ret
40: subq $7,%rcx
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86/uaccess_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ extern void __put_user_bad(void);
#define __put_user_x(size, ret, x, ptr) \
asm volatile("call __put_user_" #size \
:"=a" (ret) \
:"c" (ptr),"d" (x) \
:"c" (ptr),"a" (x) \
:"ebx")

#define put_user(x, ptr) \
Expand Down

0 comments on commit c1faab4

Please sign in to comment.