1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _H8300_SEGMENT_H
3 #define _H8300_SEGMENT_H
8 #define __USER_DS (USER_DATA)
10 #define USER_PROGRAM (2)
11 #define SUPER_DATA (3)
13 #define __KERNEL_DS (SUPER_DATA)
15 #define SUPER_PROGRAM (4)
23 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
24 #define USER_DS MAKE_MM_SEG(__USER_DS)
25 #define KERNEL_DS MAKE_MM_SEG(__KERNEL_DS)
28 * Get/set the SFC/DFC registers for MOVES instructions
31 static inline mm_segment_t
get_fs(void)
36 #define segment_eq(a, b) ((a).seg == (b).seg)
38 #endif /* __ASSEMBLY__ */
40 #endif /* _H8300_SEGMENT_H */