1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_SEGMENT_H
3 #define _ASM_SCORE_SEGMENT_H
11 #define KERNEL_DS ((mm_segment_t){0})
12 #define USER_DS KERNEL_DS
14 # define get_ds() (KERNEL_DS)
15 # define get_fs() (current_thread_info()->addr_limit)
17 do { current_thread_info()->addr_limit = (x); } while (0)
19 # define segment_eq(a, b) ((a).seg == (b).seg)
21 # endif /* __ASSEMBLY__ */
22 #endif /* _ASM_SCORE_SEGMENT_H */