Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356179
b: refs/heads/master
c: ff52c3b
h: refs/heads/master
i:
  356177: 1381e26
  356175: 3c58d25
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 12, 2013
1 parent 508e18d commit 7c73113
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 3578baaed4613a9fc09bab9f79f6ce2ac682e8a3
refs/heads/master: ff52c3b02b3f73178bfe0c219cd22abdcb0e46c3
9 changes: 8 additions & 1 deletion trunk/arch/x86/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,16 @@ __typeof__(__builtin_choose_expr(sizeof(x) > sizeof(0UL), 0ULL, 0UL))
*
* Returns zero on success, or -EFAULT on error.
* On error, the variable @x is set to zero.
*
*/
/*
* Careful: we have to cast the result to the type of the pointer
* for sign reasons.
*
* The use of %edx as the register specifier is a bit of a
* simplification, as gcc only cares about it as the starting point
* and not size: for a 64-bit value it will use %ecx:%edx on 32 bits
* (%ecx being the next register in gcc's x86 register sequence), and
* %rdx on 64 bits.
*/
#define get_user(x, ptr) \
({ \
Expand Down

0 comments on commit 7c73113

Please sign in to comment.