Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100054
b: refs/heads/master
c: 268cf04
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent d1c6978 commit edbb8a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 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: 6c2d458680d49d939ffd4b4cdc84d9e004d65910
refs/heads/master: 268cf048c890d10bd3a86bd87922ed8a722d502f
13 changes: 2 additions & 11 deletions trunk/arch/x86/lib/putuser_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@
*/

#define ENTER CFI_STARTPROC ; \
pushl %ebx ; \
CFI_ADJUST_CFA_OFFSET 4 ; \
CFI_REL_OFFSET ebx, 0 ; \
GET_THREAD_INFO(%ebx)
#define EXIT popl %ebx ; \
CFI_ADJUST_CFA_OFFSET -4 ; \
CFI_RESTORE ebx ; \
ret ; \
#define EXIT ret ; \
CFI_ENDPROC

.text
Expand Down Expand Up @@ -81,10 +75,7 @@ ENTRY(__put_user_8)
ENDPROC(__put_user_8)

bad_put_user:
CFI_STARTPROC simple
CFI_DEF_CFA esp, 2*4
CFI_OFFSET eip, -1*4
CFI_OFFSET ebx, -2*4
CFI_STARTPROC
movl $-14,%eax
EXIT
END(bad_put_user)
Expand Down
10 changes: 5 additions & 5 deletions trunk/include/asm-x86/uaccess_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,23 +188,23 @@ extern void __put_user_8(void);

#define __put_user_1(x, ptr) \
asm volatile("call __put_user_1" : "=a" (__ret_pu) \
: "0" ((typeof(*(ptr)))(x)), "c" (ptr))
: "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")

#define __put_user_2(x, ptr) \
asm volatile("call __put_user_2" : "=a" (__ret_pu) \
: "0" ((typeof(*(ptr)))(x)), "c" (ptr))
: "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")

#define __put_user_4(x, ptr) \
asm volatile("call __put_user_4" : "=a" (__ret_pu) \
: "0" ((typeof(*(ptr)))(x)), "c" (ptr))
: "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")

#define __put_user_8(x, ptr) \
asm volatile("call __put_user_8" : "=a" (__ret_pu) \
: "A" ((typeof(*(ptr)))(x)), "c" (ptr))
: "A" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")

#define __put_user_X(x, ptr) \
asm volatile("call __put_user_X" : "=a" (__ret_pu) \
: "c" (ptr))
: "c" (ptr): "ebx")

/**
* put_user: - Write a simple value into user space.
Expand Down

0 comments on commit edbb8a4

Please sign in to comment.