Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100060
b: refs/heads/master
c: efea505
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent 8898b03 commit cc3edaf
Show file tree
Hide file tree
Showing 3 changed files with 22 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: 766ed4282114eab616741107745b0dd11075e496
refs/heads/master: efea505d83873cfc8a7cdbb8a2a11d2c67467843
28 changes: 14 additions & 14 deletions trunk/arch/x86/lib/putuser_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -33,44 +33,44 @@
.text
ENTRY(__put_user_1)
ENTER
cmpl TI_addr_limit(%ebx),%ecx
cmp TI_addr_limit(%ebx),%ecx
jae bad_put_user
1: movb %al,(%ecx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_1)

ENTRY(__put_user_2)
ENTER
movl TI_addr_limit(%ebx),%ebx
subl $1,%ebx
cmpl %ebx,%ecx
mov TI_addr_limit(%ebx),%ebx
sub $1,%ebx
cmp %ebx,%ecx
jae bad_put_user
2: movw %ax,(%ecx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_2)

ENTRY(__put_user_4)
ENTER
movl TI_addr_limit(%ebx),%ebx
subl $3,%ebx
cmpl %ebx,%ecx
mov TI_addr_limit(%ebx),%ebx
sub $3,%ebx
cmp %ebx,%ecx
jae bad_put_user
3: movl %eax,(%ecx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_4)

ENTRY(__put_user_8)
ENTER
movl TI_addr_limit(%ebx),%ebx
subl $7,%ebx
cmpl %ebx,%ecx
mov TI_addr_limit(%ebx),%ebx
sub $7,%ebx
cmp %ebx,%ecx
jae bad_put_user
4: movl %eax,(%ecx)
5: movl %edx,4(%ecx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_8)

Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/x86/lib/putuser_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@
.text
ENTRY(__put_user_1)
ENTER
cmpq TI_addr_limit(%rbx),%rcx
cmp TI_addr_limit(%rbx),%rcx
jae bad_put_user
1: movb %al,(%rcx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_1)

ENTRY(__put_user_2)
ENTER
mov TI_addr_limit(%rbx),%rbx
sub $1, %rbx
cmpq %rbx ,%rcx
cmp %rbx ,%rcx
jae bad_put_user
2: movw %ax,(%rcx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_2)

Expand All @@ -64,7 +64,7 @@ ENTRY(__put_user_4)
cmp %rbx, %rcx
jae bad_put_user
3: movl %eax,(%rcx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_4)

Expand All @@ -75,13 +75,13 @@ ENTRY(__put_user_8)
cmp %rbx, %rcx
jae bad_put_user
4: movq %rax,(%rcx)
xorl %eax,%eax
xor %eax,%eax
EXIT
ENDPROC(__put_user_8)

bad_put_user:
CFI_STARTPROC
movq $(-EFAULT),%rax
mov $(-EFAULT),%rax
EXIT
END(bad_put_user)

Expand Down

0 comments on commit cc3edaf

Please sign in to comment.