1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* for use by sys-$SUBARCH/kernel-offsets.c */ 3 #include <stub-data.h> 4 5 DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); 6 7 DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); 8 DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); 9 DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT); 10 DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); 11 12 DEFINE(UM_GFP_KERNEL, GFP_KERNEL); 13 DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); 14 15 DEFINE(UM_THREAD_SIZE, THREAD_SIZE); 16 17 DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); 18 DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); 19 20 #ifdef CONFIG_PRINTK 21 DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK); 22 #endif 23 #ifdef CONFIG_UML_X86 24 DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86); 25 #endif 26 #ifdef CONFIG_64BIT 27 DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT); 28 #endif 29 #ifdef CONFIG_UML_TIME_TRAVEL_SUPPORT 30 DEFINE(UML_CONFIG_UML_TIME_TRAVEL_SUPPORT, CONFIG_UML_TIME_TRAVEL_SUPPORT); 31 #endif 32 33 /* for stub */ 34 DEFINE(UML_STUB_FIELD_OFFSET, offsetof(struct stub_data, offset)); 35 DEFINE(UML_STUB_FIELD_CHILD_ERR, offsetof(struct stub_data, child_err)); 36 DEFINE(UML_STUB_FIELD_FD, offsetof(struct stub_data, fd)); 37