Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100053
b: refs/heads/master
c: 6c2d458
h: refs/heads/master
i:
  100051: b10f7b7
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent b763e57 commit d1c6978
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 87 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: 87e2f1e7f6ab66306320403d4502d7938d3c703e
refs/heads/master: 6c2d458680d49d939ffd4b4cdc84d9e004d65910
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_$(BITS).o putuser_$(BITS).o
lib-y += usercopy_$(BITS).o getuser.o putuser_$(BITS).o
lib-y += memcpy_$(BITS).o

ifeq ($(CONFIG_X86_32),y)
Expand Down
14 changes: 9 additions & 5 deletions trunk/arch/x86/lib/getuser_64.S → trunk/arch/x86/lib/getuser.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*
* (C) Copyright 1998 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 @@ -13,13 +14,13 @@
/*
* __get_user_X
*
* Inputs: %rax contains the address.
* Inputs: %[r|e]ax contains the address.
* The register is modified, but all changes are undone
* before returning because the C code doesn't know about it.
*
* Outputs: %rax is error code (0 or -EFAULT)
* %rdx contains zero-extended value
*
* Outputs: %[r|e]ax is error code (0 or -EFAULT)
* %[r|e]dx contains zero-extended value
*
*
* These functions should not modify any other registers,
* as they get called from within inline assembly.
Expand Down Expand Up @@ -71,6 +72,7 @@ ENTRY(__get_user_4)
CFI_ENDPROC
ENDPROC(__get_user_4)

#ifdef CONFIG_X86_64
ENTRY(__get_user_8)
CFI_STARTPROC
add $7,%_ASM_AX
Expand All @@ -83,6 +85,7 @@ ENTRY(__get_user_8)
ret
CFI_ENDPROC
ENDPROC(__get_user_8)
#endif

bad_get_user:
CFI_STARTPROC
Expand All @@ -96,5 +99,6 @@ END(bad_get_user)
_ASM_PTR 1b,bad_get_user
_ASM_PTR 2b,bad_get_user
_ASM_PTR 3b,bad_get_user
#ifdef CONFIG_X86_64
_ASM_PTR 4b,bad_get_user
.previous
#endif
79 changes: 0 additions & 79 deletions trunk/arch/x86/lib/getuser_32.S

This file was deleted.

4 changes: 3 additions & 1 deletion trunk/include/asm-x86/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

#ifdef __ASSEMBLY__
# define __ASM_FORM(x) x
# define __ASM_EX_SEC .section __ex_table
#else
# define __ASM_FORM(x) " " #x " "
# define __ASM_EX_SEC " .section __ex_table,\"a\"\n"
#endif

#ifdef CONFIG_X86_32
Expand All @@ -30,7 +32,7 @@

/* Exception table entry */
# define _ASM_EXTABLE(from,to) \
" .section __ex_table,\"a\"\n" \
__ASM_EX_SEC \
_ASM_ALIGN "\n" \
_ASM_PTR #from "," #to "\n" \
" .previous\n"
Expand Down

0 comments on commit d1c6978

Please sign in to comment.