xref: /linux/arch/um/include/shared/common-offsets.h (revision 8e5d7cf3)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
28569c914SAl Viro /* for use by sys-$SUBARCH/kernel-offsets.c */
3*9f0b4807SJohannes Berg #include <stub-data.h>
48569c914SAl Viro 
58569c914SAl Viro DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
68569c914SAl Viro 
78569c914SAl Viro DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
88569c914SAl Viro DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
98569c914SAl Viro DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
108569c914SAl Viro DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
118569c914SAl Viro 
128569c914SAl Viro DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
138569c914SAl Viro DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
148569c914SAl Viro 
158569c914SAl Viro DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
168569c914SAl Viro 
178569c914SAl Viro DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
188569c914SAl Viro DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
1987e299e5SAl Viro 
2087e299e5SAl Viro #ifdef CONFIG_PRINTK
2187e299e5SAl Viro DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
2287e299e5SAl Viro #endif
2387e299e5SAl Viro #ifdef CONFIG_UML_X86
2487e299e5SAl Viro DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
2587e299e5SAl Viro #endif
2687e299e5SAl Viro #ifdef CONFIG_64BIT
2787e299e5SAl Viro DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
2887e299e5SAl Viro #endif
2911385539SJohannes Berg #ifdef CONFIG_UML_TIME_TRAVEL_SUPPORT
3011385539SJohannes Berg DEFINE(UML_CONFIG_UML_TIME_TRAVEL_SUPPORT, CONFIG_UML_TIME_TRAVEL_SUPPORT);
3111385539SJohannes Berg #endif
32*9f0b4807SJohannes Berg 
33*9f0b4807SJohannes Berg /* for stub */
34*9f0b4807SJohannes Berg DEFINE(UML_STUB_FIELD_OFFSET, offsetof(struct stub_data, offset));
35*9f0b4807SJohannes Berg DEFINE(UML_STUB_FIELD_CHILD_ERR, offsetof(struct stub_data, child_err));
36*9f0b4807SJohannes Berg DEFINE(UML_STUB_FIELD_FD, offsetof(struct stub_data, fd));
37