x86, efi: Set runtime_version to the EFI spec revision
[linux/fpc-iii.git] / arch / score / include / asm / segment.h
blobe16cf6afb49597bc26aaa63be7d0d20de97f0adf
1 #ifndef _ASM_SCORE_SEGMENT_H
2 #define _ASM_SCORE_SEGMENT_H
4 #ifndef __ASSEMBLY__
6 typedef struct {
7 unsigned long seg;
8 } mm_segment_t;
10 #define KERNEL_DS ((mm_segment_t){0})
11 #define USER_DS KERNEL_DS
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)
18 # define segment_eq(a, b) ((a).seg == (b).seg)
20 # endif /* __ASSEMBLY__ */
21 #endif /* _ASM_SCORE_SEGMENT_H */