common-offsets.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* for use by sys-$SUBARCH/kernel-offsets.c */
  3. DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
  4. DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
  5. DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
  6. DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
  7. DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
  8. DEFINE(UM_ELF_CLASS, ELF_CLASS);
  9. DEFINE(UM_ELFCLASS32, ELFCLASS32);
  10. DEFINE(UM_ELFCLASS64, ELFCLASS64);
  11. DEFINE(UM_NR_CPUS, NR_CPUS);
  12. DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
  13. DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
  14. /* For crypto assembler code. */
  15. DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
  16. DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
  17. DEFINE(UM_HZ, HZ);
  18. DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
  19. DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
  20. DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
  21. #ifdef CONFIG_PRINTK
  22. DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
  23. #endif
  24. #ifdef CONFIG_NO_HZ_COMMON
  25. DEFINE(UML_CONFIG_NO_HZ_COMMON, CONFIG_NO_HZ_COMMON);
  26. #endif
  27. #ifdef CONFIG_UML_X86
  28. DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
  29. #endif
  30. #ifdef CONFIG_64BIT
  31. DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
  32. #endif