common-offsets.h 1.0 KB

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