treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / csky / include / asm / segment.h
blobdb2640d5f57591f32adb9b9508daf2233358582c
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
7 typedef struct {
8 unsigned long seg;
9 } mm_segment_t;
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 */