blob: 6a2a5be5026de7d0fbcbbe7e6c6ce599ec2a5f44 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#ifndef __ASMARC_SEGMENT_H
7#define __ASMARC_SEGMENT_H
8
9#ifndef __ASSEMBLY__
10
11typedef 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 */