| 1 | |
| 2 | |
| 3 | * Generate definitions needed by assembly language modules.
|
| 4 | * This code generates raw asm output which is post-processed to extract
|
| 5 | * and format the required data.
|
| 6 |
|
| 7 | #define COMPILE_OFFSETS
|
| 8 |
|
| 9 | #include <linux/types.h>
|
| 10 | #include <linux/stddef.h>
|
| 11 | #include <linux/sched.h>
|
| 12 | #include <linux/ptrace.h>
|
| 13 | #include <linux/kbuild.h>
|
| 14 | #include <asm/machvec.h>
|
| 15 |
|
| 16 | static void __used foo(void)
|
| 17 | {
|
| 18 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
|
| 19 | DEFINE(TI_FP, offsetof(struct thread_info, fp));
|
| 20 | DEFINE(TI_STATUS, offsetof(struct thread_info, status));
|
| 21 | BLANK();
|
| 22 |
|
| 23 | DEFINE(SP_OFF, offsetof(struct pt_regs, ps));
|
| 24 | DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs));
|
| 25 | DEFINE(TI_SYSCALL_META, offsetof(struct thread_info, syscall_meta));
|
| 26 | BLANK();
|
| 27 |
|
| 28 | DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack));
|
| 29 | BLANK();
|
| 30 |
|
| 31 | DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache));
|
| 32 | DEFINE(HAE_REG, offsetof(struct alpha_machine_vector, hae_register));
|
| 33 |
|
| 34 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
|
| 35 | DEFINE(TI_SYSCALL_WORK, offsetof(struct thread_info, syscall_work));
|
| 36 | DEFINE(TI_STATUS, offsetof(struct thread_info, status));
|
| 37 | }
|