Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v5.2-rc6 18 lines 512 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#ifndef __ASM_CSKY_SEGMENT_H 5#define __ASM_CSKY_SEGMENT_H 6 7typedef struct { 8 unsigned long seg; 9} mm_segment_t; 10 11#define KERNEL_DS ((mm_segment_t) { 0xFFFFFFFF }) 12 13#define USER_DS ((mm_segment_t) { 0x80000000UL }) 14#define get_fs() (current_thread_info()->addr_limit) 15#define set_fs(x) (current_thread_info()->addr_limit = (x)) 16#define segment_eq(a, b) ((a).seg == (b).seg) 17 18#endif /* __ASM_CSKY_SEGMENT_H */