asm-offsets.c (1ccedb7cdba6886939dd8b4c8f965a826f696e56) asm-offsets.c (b020632e40c3ed5e8c0c066d022672907e8401cf)
1/*
2 * Generate definitions needed by assembly language modules.
3 * This code generates raw asm output which is post-processed to extract
4 * and format the required data.
5 */
6
7#include <linux/sched.h>
8#include <linux/kbuild.h>
1/*
2 * Generate definitions needed by assembly language modules.
3 * This code generates raw asm output which is post-processed to extract
4 * and format the required data.
5 */
6
7#include <linux/sched.h>
8#include <linux/kbuild.h>
9#include <asm/vdso.h>
9
10int main(void)
11{
12 DEFINE(__THREAD_info, offsetof(struct task_struct, stack));
13 DEFINE(__THREAD_ksp, offsetof(struct task_struct, thread.ksp));
14 DEFINE(__THREAD_per, offsetof(struct task_struct, thread.per_info));
15 DEFINE(__THREAD_mm_segment,
16 offsetof(struct task_struct, thread.mm_segment));

--- 16 unchanged lines hidden (view full) ---

33 DEFINE(__PT_ORIG_GPR2, offsetof(struct pt_regs, orig_gpr2));
34 DEFINE(__PT_ILC, offsetof(struct pt_regs, ilc));
35 DEFINE(__PT_SVCNR, offsetof(struct pt_regs, svcnr));
36 DEFINE(__PT_SIZE, sizeof(struct pt_regs));
37 BLANK();
38 DEFINE(__SF_BACKCHAIN, offsetof(struct stack_frame, back_chain));
39 DEFINE(__SF_GPRS, offsetof(struct stack_frame, gprs));
40 DEFINE(__SF_EMPTY, offsetof(struct stack_frame, empty1));
10
11int main(void)
12{
13 DEFINE(__THREAD_info, offsetof(struct task_struct, stack));
14 DEFINE(__THREAD_ksp, offsetof(struct task_struct, thread.ksp));
15 DEFINE(__THREAD_per, offsetof(struct task_struct, thread.per_info));
16 DEFINE(__THREAD_mm_segment,
17 offsetof(struct task_struct, thread.mm_segment));

--- 16 unchanged lines hidden (view full) ---

34 DEFINE(__PT_ORIG_GPR2, offsetof(struct pt_regs, orig_gpr2));
35 DEFINE(__PT_ILC, offsetof(struct pt_regs, ilc));
36 DEFINE(__PT_SVCNR, offsetof(struct pt_regs, svcnr));
37 DEFINE(__PT_SIZE, sizeof(struct pt_regs));
38 BLANK();
39 DEFINE(__SF_BACKCHAIN, offsetof(struct stack_frame, back_chain));
40 DEFINE(__SF_GPRS, offsetof(struct stack_frame, gprs));
41 DEFINE(__SF_EMPTY, offsetof(struct stack_frame, empty1));
42 BLANK();
43 /* timeval/timezone offsets for use by vdso */
44 DEFINE(__VDSO_UPD_COUNT, offsetof(struct vdso_data, tb_update_count));
45 DEFINE(__VDSO_XTIME_STAMP, offsetof(struct vdso_data, xtime_tod_stamp));
46 DEFINE(__VDSO_XTIME_SEC, offsetof(struct vdso_data, xtime_clock_sec));
47 DEFINE(__VDSO_XTIME_NSEC, offsetof(struct vdso_data, xtime_clock_nsec));
48 DEFINE(__VDSO_WTOM_SEC, offsetof(struct vdso_data, wtom_clock_sec));
49 DEFINE(__VDSO_WTOM_NSEC, offsetof(struct vdso_data, wtom_clock_nsec));
50 DEFINE(__VDSO_TIMEZONE, offsetof(struct vdso_data, tz_minuteswest));
51 /* constants used by the vdso */
52 DEFINE(CLOCK_REALTIME, CLOCK_REALTIME);
53 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC);
54 DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC);
55
41 return 0;
42}
56 return 0;
57}