forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arc/include/asm/segment.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * 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.
74 */
85
96 #ifndef __ASMARC_SEGMENT_H
....@@ -17,8 +14,7 @@
1714
1815 #define KERNEL_DS MAKE_MM_SEG(0)
1916 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
20
-
21
-#define segment_eq(a, b) ((a) == (b))
17
+#define uaccess_kernel() (get_fs() == KERNEL_DS)
2218
2319 #endif /* __ASSEMBLY__ */
2420 #endif /* __ASMARC_SEGMENT_H */