Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
segment.h
Go to the documentation of this file.
1 #ifndef _ASM_SCORE_SEGMENT_H
2 #define _ASM_SCORE_SEGMENT_H
3 
4 #ifndef __ASSEMBLY__
5 
6 typedef struct {
7  unsigned long seg;
9 
10 #define KERNEL_DS ((mm_segment_t){0})
11 #define USER_DS KERNEL_DS
12 
13 # define get_ds() (KERNEL_DS)
14 # define get_fs() (current_thread_info()->addr_limit)
15 # define set_fs(x) \
16  do { current_thread_info()->addr_limit = (x); } while (0)
17 
18 # define segment_eq(a, b) ((a).seg == (b).seg)
19 
20 # endif /* __ASSEMBLY__ */
21 #endif /* _ASM_SCORE_SEGMENT_H */