Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100070
b: refs/heads/master
c: 002ca16
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent 2691cd1 commit 5feb1ef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 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: 865e5b76505cdade261773bde32f785b3ce579f1
refs/heads/master: 002ca1690c3d0a495e6aedd608281aeb01ce6385
4 changes: 4 additions & 0 deletions trunk/include/asm-x86/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

#define segment_eq(a, b) ((a).seg == (b).seg)

#define __addr_ok(addr) \
((unsigned long __force)(addr) < \
(current_thread_info()->addr_limit.seg))

/*
* Test whether a block of memory is a valid user space address.
* Returns 0 if the range is valid, nonzero otherwise.
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/asm-x86/uaccess_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ extern struct movsl_mask {
} ____cacheline_aligned_in_smp movsl_mask;
#endif

#define __addr_ok(addr) \
((unsigned long __force)(addr) < \
(current_thread_info()->addr_limit.seg))

extern void __put_user_bad(void);

/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-x86/uaccess_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
#include <linux/prefetch.h>
#include <asm/page.h>

#define __addr_ok(addr) (!((unsigned long)(addr) & \
(current_thread_info()->addr_limit.seg)))

#define ARCH_HAS_SEARCH_EXTABLE

extern void __put_user_1(void);
Expand Down

0 comments on commit 5feb1ef

Please sign in to comment.