Go to the documentation of this file. 1 #ifndef __ASM_SH_SEGMENT_H
2 #define __ASM_SH_SEGMENT_H
10 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
19 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFFUL)
21 #define USER_DS MAKE_MM_SEG(PAGE_OFFSET)
23 #define USER_DS KERNEL_DS
26 #define segment_eq(a,b) ((a).seg == (b).seg)
28 #define get_ds() (KERNEL_DS)
30 #define get_fs() (current_thread_info()->addr_limit)
31 #define set_fs(x) (current_thread_info()->addr_limit = (x))