common-offsets.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* for use by sys-$SUBARCH/kernel-offsets.c */
  2. DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
  3. OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
  4. OFFSET(HOST_TASK_PID, task_struct, pid);
  5. DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
  6. DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
  7. DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
  8. DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
  9. DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
  10. DEFINE_STR(UM_KERN_ALERT, KERN_ALERT);
  11. DEFINE_STR(UM_KERN_CRIT, KERN_CRIT);
  12. DEFINE_STR(UM_KERN_ERR, KERN_ERR);
  13. DEFINE_STR(UM_KERN_WARNING, KERN_WARNING);
  14. DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE);
  15. DEFINE_STR(UM_KERN_INFO, KERN_INFO);
  16. DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG);
  17. DEFINE_STR(UM_KERN_CONT, KERN_CONT);
  18. DEFINE(UM_ELF_CLASS, ELF_CLASS);
  19. DEFINE(UM_ELFCLASS32, ELFCLASS32);
  20. DEFINE(UM_ELFCLASS64, ELFCLASS64);
  21. DEFINE(UM_NR_CPUS, NR_CPUS);
  22. DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
  23. DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
  24. /* For crypto assembler code. */
  25. DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
  26. DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
  27. DEFINE(UM_HZ, HZ);
  28. DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
  29. DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
  30. DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
  31. #ifdef CONFIG_PRINTK
  32. DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
  33. #endif
  34. #ifdef CONFIG_NO_HZ
  35. DEFINE(UML_CONFIG_NO_HZ, CONFIG_NO_HZ);
  36. #endif
  37. #ifdef CONFIG_UML_X86
  38. DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
  39. #endif
  40. #ifdef CONFIG_64BIT
  41. DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
  42. #endif