1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_SEGMENT_H
5 #define __ASM_CSKY_SEGMENT_H
11 #define KERNEL_DS ((mm_segment_t) { 0xFFFFFFFF })
13 #define USER_DS ((mm_segment_t) { 0x80000000UL })
14 #define get_fs() (current_thread_info()->addr_limit)
15 #define set_fs(x) (current_thread_info()->addr_limit = (x))
16 #define segment_eq(a, b) ((a).seg == (b).seg)
18 #endif /* __ASM_CSKY_SEGMENT_H */