Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100062
b: refs/heads/master
c: 5cbbc3b
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent a974d00 commit 31d4276
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 98 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: 2528de431ddb200653d1dc6ca90074bad9520f09
refs/heads/master: 5cbbc3b1eb37bdc72eefd2de03b39f5e784400c2
2 changes: 1 addition & 1 deletion trunk/arch/x86/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
obj-$(CONFIG_SMP) := msr-on-cpu.o

lib-y := delay.o
lib-y += usercopy_$(BITS).o getuser.o putuser_$(BITS).o
lib-y += usercopy_$(BITS).o getuser.o putuser.o
lib-y += memcpy_$(BITS).o

ifeq ($(CONFIG_X86_32),y)
Expand Down
11 changes: 9 additions & 2 deletions trunk/arch/x86/lib/putuser_32.S → trunk/arch/x86/lib/putuser.S
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* __put_user functions.
*
* (C) Copyright 2005 Linus Torvalds
* (C) Copyright 2005 Andi Kleen
* (C) Copyright 2008 Glauber Costa
*
* These functions have a non-standard call interface
* to make them more efficient, especially as they
Expand All @@ -11,6 +13,7 @@
#include <linux/linkage.h>
#include <asm/dwarf2.h>
#include <asm/thread_info.h>
#include <asm/errno.h>
#include <asm/asm.h>


Expand Down Expand Up @@ -69,15 +72,17 @@ ENTRY(__put_user_8)
sub $7,%_ASM_BX
cmp %_ASM_BX,%_ASM_CX
jae bad_put_user
4: movl %_ASM_AX,(%_ASM_CX)
4: mov %_ASM_AX,(%_ASM_CX)
#ifdef CONFIG_X86_32
5: movl %edx,4(%_ASM_CX)
#endif
xor %eax,%eax
EXIT
ENDPROC(__put_user_8)

bad_put_user:
CFI_STARTPROC
movl $-14,%eax
movl $-EFAULT,%eax
EXIT
END(bad_put_user)

Expand All @@ -86,5 +91,7 @@ END(bad_put_user)
_ASM_PTR 2b,bad_put_user
_ASM_PTR 3b,bad_put_user
_ASM_PTR 4b,bad_put_user
#ifdef CONFIG_X86_32
_ASM_PTR 5b,bad_put_user
#endif
.previous
94 changes: 0 additions & 94 deletions trunk/arch/x86/lib/putuser_64.S

This file was deleted.

0 comments on commit 31d4276

Please sign in to comment.