WIP FPC-III support
[linux/fpc-iii.git] / arch / arc / include / asm / segment.h
blob871f8ab11bfd02effaca129c68e4147f36d18e19
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 */
6 #ifndef __ASMARC_SEGMENT_H
7 #define __ASMARC_SEGMENT_H
9 #ifndef __ASSEMBLY__
11 typedef unsigned long mm_segment_t;
13 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
15 #define KERNEL_DS MAKE_MM_SEG(0)
16 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
17 #define uaccess_kernel() (get_fs() == KERNEL_DS)
19 #endif /* __ASSEMBLY__ */
20 #endif /* __ASMARC_SEGMENT_H */