Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106812
b: refs/heads/master
c: 8524728
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Jul 28, 2008
1 parent f38f49d commit 43923ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 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: 66dfe18114839a7297f56f43f03125f4121de79b
refs/heads/master: 85247285ea6f6e2087193b2a720404690e9cb1b3
19 changes: 0 additions & 19 deletions trunk/include/asm-sh/uaccess_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,6 @@
#define VERIFY_READ 0
#define VERIFY_WRITE 1

/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
* get_fs() == KERNEL_DS, checking is bypassed.
*
* For historical reasons (Data Segment Register?), these macros are misnamed.
*/

#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })

#define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF)
#define USER_DS MAKE_MM_SEG(0x80000000)

#define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit)
#define set_fs(x) (current_thread_info()->addr_limit=(x))

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

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

/*
Expand Down

0 comments on commit 43923ff

Please sign in to comment.