Skip to content

Commit 43697cb

Browse files
committed
ARC: uaccess friends
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 10a6007 commit 43697cb

3 files changed

Lines changed: 733 additions & 0 deletions

File tree

‎arch/arc/include/asm/segment.h‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3+
*
4+
* This program is free software; you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License version 2 as
6+
* published by the Free Software Foundation.
7+
*/
8+
9+
#ifndef __ASMARC_SEGMENT_H
10+
#define __ASMARC_SEGMENT_H
11+
12+
#ifndef __ASSEMBLY__
13+
14+
typedef unsigned long mm_segment_t;
15+
16+
#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
17+
18+
#define KERNEL_DS MAKE_MM_SEG(0)
19+
#define USER_DS MAKE_MM_SEG(TASK_SIZE)
20+
21+
#define segment_eq(a, b) ((a) == (b))
22+
23+
#endif /* __ASSEMBLY__ */
24+
#endif /* __ASMARC_SEGMENT_H */

0 commit comments

Comments
 (0)