Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Vineet Gupta | 43697cb | 2013-01-18 15:12:16 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
Vineet Gupta | 43697cb | 2013-01-18 15:12:16 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASMARC_SEGMENT_H |
| 7 | #define __ASMARC_SEGMENT_H |
| 8 | |
| 9 | #ifndef __ASSEMBLY__ |
| 10 | |
| 11 | typedef unsigned long mm_segment_t; |
| 12 | |
| 13 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
| 14 | |
| 15 | #define KERNEL_DS MAKE_MM_SEG(0) |
| 16 | #define USER_DS MAKE_MM_SEG(TASK_SIZE) |
| 17 | |
| 18 | #define segment_eq(a, b) ((a) == (b)) |
| 19 | |
| 20 | #endif /* __ASSEMBLY__ */ |
| 21 | #endif /* __ASMARC_SEGMENT_H */ |