asm-offsets.c 340 B

1234567891011121314
  1. #include <linux/thread_info.h>
  2. #include <linux/kbuild.h>
  3. int foo(void)
  4. {
  5. OFFSET(TI_TASK, thread_info, task);
  6. OFFSET(TI_FLAGS, thread_info, flags);
  7. OFFSET(TI_STATUS, thread_info, status);
  8. OFFSET(TI_CPU, thread_info, cpu);
  9. OFFSET(TI_PRE_COUNT, thread_info, preempt_count);
  10. OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit);
  11. return 0;
  12. }