Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100058
b: refs/heads/master
c: 663aa96
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent c1faab4 commit 1dd0286
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 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: 0ada3164031162b4e1b7ff6b36ba8cc80ff7fe96
refs/heads/master: 663aa96df32af9c4141ef3179282f95c7537643a
33 changes: 12 additions & 21 deletions trunk/arch/x86/lib/putuser_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,48 +46,39 @@ ENDPROC(__put_user_1)
ENTRY(__put_user_2)
CFI_STARTPROC
GET_THREAD_INFO(%rbx)
addq $1,%rcx
jc 20f
cmpq TI_addr_limit(%rbx),%rcx
jae 20f
decq %rcx
mov TI_addr_limit(%rbx),%rbx
sub $1, %rbx
cmpq %rbx ,%rcx
jae bad_put_user
2: movw %ax,(%rcx)
xorl %eax,%eax
ret
20: decq %rcx
jmp bad_put_user
CFI_ENDPROC
ENDPROC(__put_user_2)

ENTRY(__put_user_4)
CFI_STARTPROC
GET_THREAD_INFO(%rbx)
addq $3,%rcx
jc 30f
cmpq TI_addr_limit(%rbx),%rcx
jae 30f
subq $3,%rcx
mov TI_addr_limit(%rbx),%rbx
sub $3, %rbx
cmp %rbx, %rcx
jae bad_put_user
3: movl %eax,(%rcx)
xorl %eax,%eax
ret
30: subq $3,%rcx
jmp bad_put_user
CFI_ENDPROC
ENDPROC(__put_user_4)

ENTRY(__put_user_8)
CFI_STARTPROC
GET_THREAD_INFO(%rbx)
addq $7,%rcx
jc 40f
cmpq TI_addr_limit(%rbx),%rcx
jae 40f
subq $7,%rcx
mov TI_addr_limit(%rbx),%rbx
sub $7, %rbx
cmp %rbx, %rcx
jae bad_put_user
4: movq %rax,(%rcx)
xorl %eax,%eax
ret
40: subq $7,%rcx
jmp bad_put_user
CFI_ENDPROC
ENDPROC(__put_user_8)

Expand Down

0 comments on commit 1dd0286

Please sign in to comment.