Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/x86/um/shared/sysdep/stub-data.h
26516 views
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef __ARCH_STUB_DATA_H
3
#define __ARCH_STUB_DATA_H
4
5
#ifdef __i386__
6
#include <generated/asm-offsets.h>
7
#include <asm/ldt.h>
8
9
struct stub_data_arch {
10
int sync;
11
struct user_desc tls[UM_KERN_GDT_ENTRY_TLS_ENTRIES];
12
};
13
#else
14
#define STUB_SYNC_FS_BASE (1 << 0)
15
#define STUB_SYNC_GS_BASE (1 << 1)
16
struct stub_data_arch {
17
int sync;
18
unsigned long fs_base;
19
unsigned long gs_base;
20
};
21
#endif
22
23
#endif /* __ARCH_STUB_DATA_H */
24
25