1 #ifndef _ASM_SCORE_SEGMENT_H
2 #define _ASM_SCORE_SEGMENT_H
3 
4 #ifndef __ASSEMBLY__
5 
6 typedef struct {
7 	unsigned long seg;
8 } mm_segment_t;
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 */
22