1b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds /*
31da177e4SLinus Torvalds * Generate definitions needed by assembly language modules.
41da177e4SLinus Torvalds * This code generates raw asm output which is post-processed
51da177e4SLinus Torvalds * to extract and format the required data.
61da177e4SLinus Torvalds */
71da177e4SLinus Torvalds
882f1b07bSTony Luck #define ASM_OFFSETS_C 1
91da177e4SLinus Torvalds
103f07c014SIngo Molnar #include <linux/sched/signal.h>
1196ded9daSPavel Emelyanov #include <linux/pid.h>
120aa366f3STony Luck #include <linux/clocksource.h>
13ad2bc7b4SChristoph Lameter #include <linux/kbuild.h>
147f30491cSTony Luck #include <asm/processor.h>
157f30491cSTony Luck #include <asm/ptrace.h>
167f30491cSTony Luck #include <asm/siginfo.h>
177f30491cSTony Luck #include <asm/sigcontext.h>
187f30491cSTony Luck #include <asm/mca.h>
191da177e4SLinus Torvalds
201da177e4SLinus Torvalds #include "../kernel/sigframe.h"
210aa366f3STony Luck #include "../kernel/fsyscall_gtod_data.h"
221da177e4SLinus Torvalds
foo(void)231da177e4SLinus Torvalds void foo(void)
241da177e4SLinus Torvalds {
251da177e4SLinus Torvalds DEFINE(IA64_TASK_SIZE, sizeof (struct task_struct));
261da177e4SLinus Torvalds DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info));
271da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_SIZE, sizeof (struct pt_regs));
281da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_SIZE, sizeof (struct switch_stack));
291da177e4SLinus Torvalds DEFINE(IA64_SIGINFO_SIZE, sizeof (struct siginfo));
301da177e4SLinus Torvalds DEFINE(IA64_CPU_SIZE, sizeof (struct cpuinfo_ia64));
311da177e4SLinus Torvalds DEFINE(SIGFRAME_SIZE, sizeof (struct sigframe));
321da177e4SLinus Torvalds DEFINE(UNW_FRAME_INFO_SIZE, sizeof (struct unw_frame_info));
331da177e4SLinus Torvalds
34e8cfbc24SGargi Sharma BUILD_BUG_ON(sizeof(struct upid) != 16);
35e8cfbc24SGargi Sharma DEFINE(IA64_UPID_SHIFT, 4);
3696ded9daSPavel Emelyanov
371da177e4SLinus Torvalds BLANK();
381da177e4SLinus Torvalds
391da177e4SLinus Torvalds DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
403bc207d2SFenghua Yu DEFINE(TI_CPU, offsetof(struct thread_info, cpu));
411da177e4SLinus Torvalds DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count));
42abf917cdSFrederic Weisbecker #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
43b64f34cdSHidetoshi Seto DEFINE(TI_AC_STAMP, offsetof(struct thread_info, ac_stamp));
44b64f34cdSHidetoshi Seto DEFINE(TI_AC_LEAVE, offsetof(struct thread_info, ac_leave));
45b64f34cdSHidetoshi Seto DEFINE(TI_AC_STIME, offsetof(struct thread_info, ac_stime));
46b64f34cdSHidetoshi Seto DEFINE(TI_AC_UTIME, offsetof(struct thread_info, ac_utime));
47b64f34cdSHidetoshi Seto #endif
481da177e4SLinus Torvalds
491da177e4SLinus Torvalds BLANK();
501da177e4SLinus Torvalds
511da177e4SLinus Torvalds DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked));
521da177e4SLinus Torvalds DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid));
532c470475SEric W. Biederman DEFINE(IA64_TASK_THREAD_PID_OFFSET,offsetof (struct task_struct, thread_pid));
5496ded9daSPavel Emelyanov DEFINE(IA64_PID_LEVEL_OFFSET, offsetof (struct pid, level));
5596ded9daSPavel Emelyanov DEFINE(IA64_PID_UPID_OFFSET, offsetof (struct pid, numbers[0]));
561da177e4SLinus Torvalds DEFINE(IA64_TASK_PENDING_OFFSET,offsetof (struct task_struct, pending));
571da177e4SLinus Torvalds DEFINE(IA64_TASK_PID_OFFSET, offsetof (struct task_struct, pid));
581da177e4SLinus Torvalds DEFINE(IA64_TASK_REAL_PARENT_OFFSET, offsetof (struct task_struct, real_parent));
591da177e4SLinus Torvalds DEFINE(IA64_TASK_SIGNAL_OFFSET,offsetof (struct task_struct, signal));
601da177e4SLinus Torvalds DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid));
611da177e4SLinus Torvalds DEFINE(IA64_TASK_THREAD_KSP_OFFSET, offsetof (struct task_struct, thread.ksp));
621da177e4SLinus Torvalds DEFINE(IA64_TASK_THREAD_ON_USTACK_OFFSET, offsetof (struct task_struct, thread.on_ustack));
631da177e4SLinus Torvalds
641da177e4SLinus Torvalds BLANK();
651da177e4SLinus Torvalds
661da177e4SLinus Torvalds
671da177e4SLinus Torvalds DEFINE(IA64_SIGNAL_GROUP_STOP_COUNT_OFFSET,offsetof (struct signal_struct,
681da177e4SLinus Torvalds group_stop_count));
691da177e4SLinus Torvalds DEFINE(IA64_SIGNAL_SHARED_PENDING_OFFSET,offsetof (struct signal_struct, shared_pending));
706883f81aSEric W. Biederman DEFINE(IA64_SIGNAL_PIDS_TGID_OFFSET, offsetof (struct signal_struct, pids[PIDTYPE_TGID]));
711da177e4SLinus Torvalds
721da177e4SLinus Torvalds BLANK();
731da177e4SLinus Torvalds
741da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_B6_OFFSET, offsetof (struct pt_regs, b6));
751da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_B7_OFFSET, offsetof (struct pt_regs, b7));
761da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_CSD_OFFSET, offsetof (struct pt_regs, ar_csd));
771da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_SSD_OFFSET, offsetof (struct pt_regs, ar_ssd));
781da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R8_OFFSET, offsetof (struct pt_regs, r8));
791da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R9_OFFSET, offsetof (struct pt_regs, r9));
801da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R10_OFFSET, offsetof (struct pt_regs, r10));
811da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R11_OFFSET, offsetof (struct pt_regs, r11));
821da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_CR_IPSR_OFFSET, offsetof (struct pt_regs, cr_ipsr));
831da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_CR_IIP_OFFSET, offsetof (struct pt_regs, cr_iip));
841da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_CR_IFS_OFFSET, offsetof (struct pt_regs, cr_ifs));
851da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_UNAT_OFFSET, offsetof (struct pt_regs, ar_unat));
861da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_PFS_OFFSET, offsetof (struct pt_regs, ar_pfs));
871da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_RSC_OFFSET, offsetof (struct pt_regs, ar_rsc));
881da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_RNAT_OFFSET, offsetof (struct pt_regs, ar_rnat));
891da177e4SLinus Torvalds
901da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_BSPSTORE_OFFSET, offsetof (struct pt_regs, ar_bspstore));
911da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_PR_OFFSET, offsetof (struct pt_regs, pr));
921da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_B0_OFFSET, offsetof (struct pt_regs, b0));
931da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_LOADRS_OFFSET, offsetof (struct pt_regs, loadrs));
941da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R1_OFFSET, offsetof (struct pt_regs, r1));
951da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R12_OFFSET, offsetof (struct pt_regs, r12));
961da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R13_OFFSET, offsetof (struct pt_regs, r13));
971da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_FPSR_OFFSET, offsetof (struct pt_regs, ar_fpsr));
981da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R15_OFFSET, offsetof (struct pt_regs, r15));
991da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R14_OFFSET, offsetof (struct pt_regs, r14));
1001da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R2_OFFSET, offsetof (struct pt_regs, r2));
1011da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R3_OFFSET, offsetof (struct pt_regs, r3));
1021da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R16_OFFSET, offsetof (struct pt_regs, r16));
1031da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R17_OFFSET, offsetof (struct pt_regs, r17));
1041da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R18_OFFSET, offsetof (struct pt_regs, r18));
1051da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R19_OFFSET, offsetof (struct pt_regs, r19));
1061da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R20_OFFSET, offsetof (struct pt_regs, r20));
1071da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R21_OFFSET, offsetof (struct pt_regs, r21));
1081da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R22_OFFSET, offsetof (struct pt_regs, r22));
1091da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R23_OFFSET, offsetof (struct pt_regs, r23));
1101da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R24_OFFSET, offsetof (struct pt_regs, r24));
1111da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R25_OFFSET, offsetof (struct pt_regs, r25));
1121da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R26_OFFSET, offsetof (struct pt_regs, r26));
1131da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R27_OFFSET, offsetof (struct pt_regs, r27));
1141da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R28_OFFSET, offsetof (struct pt_regs, r28));
1151da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R29_OFFSET, offsetof (struct pt_regs, r29));
1161da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R30_OFFSET, offsetof (struct pt_regs, r30));
1171da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_R31_OFFSET, offsetof (struct pt_regs, r31));
1181da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_AR_CCV_OFFSET, offsetof (struct pt_regs, ar_ccv));
1191da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F6_OFFSET, offsetof (struct pt_regs, f6));
1201da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F7_OFFSET, offsetof (struct pt_regs, f7));
1211da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F8_OFFSET, offsetof (struct pt_regs, f8));
1221da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F9_OFFSET, offsetof (struct pt_regs, f9));
1231da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F10_OFFSET, offsetof (struct pt_regs, f10));
1241da177e4SLinus Torvalds DEFINE(IA64_PT_REGS_F11_OFFSET, offsetof (struct pt_regs, f11));
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvalds BLANK();
1271da177e4SLinus Torvalds
1281da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_CALLER_UNAT_OFFSET, offsetof (struct switch_stack, caller_unat));
1291da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_FPSR_OFFSET, offsetof (struct switch_stack, ar_fpsr));
1301da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F2_OFFSET, offsetof (struct switch_stack, f2));
1311da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F3_OFFSET, offsetof (struct switch_stack, f3));
1321da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F4_OFFSET, offsetof (struct switch_stack, f4));
1331da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F5_OFFSET, offsetof (struct switch_stack, f5));
1341da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F12_OFFSET, offsetof (struct switch_stack, f12));
1351da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F13_OFFSET, offsetof (struct switch_stack, f13));
1361da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F14_OFFSET, offsetof (struct switch_stack, f14));
1371da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F15_OFFSET, offsetof (struct switch_stack, f15));
1381da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F16_OFFSET, offsetof (struct switch_stack, f16));
1391da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F17_OFFSET, offsetof (struct switch_stack, f17));
1401da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F18_OFFSET, offsetof (struct switch_stack, f18));
1411da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F19_OFFSET, offsetof (struct switch_stack, f19));
1421da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F20_OFFSET, offsetof (struct switch_stack, f20));
1431da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F21_OFFSET, offsetof (struct switch_stack, f21));
1441da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F22_OFFSET, offsetof (struct switch_stack, f22));
1451da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F23_OFFSET, offsetof (struct switch_stack, f23));
1461da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F24_OFFSET, offsetof (struct switch_stack, f24));
1471da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F25_OFFSET, offsetof (struct switch_stack, f25));
1481da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F26_OFFSET, offsetof (struct switch_stack, f26));
1491da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F27_OFFSET, offsetof (struct switch_stack, f27));
1501da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F28_OFFSET, offsetof (struct switch_stack, f28));
1511da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F29_OFFSET, offsetof (struct switch_stack, f29));
1521da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F30_OFFSET, offsetof (struct switch_stack, f30));
1531da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_F31_OFFSET, offsetof (struct switch_stack, f31));
1541da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_R4_OFFSET, offsetof (struct switch_stack, r4));
1551da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_R5_OFFSET, offsetof (struct switch_stack, r5));
1561da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_R6_OFFSET, offsetof (struct switch_stack, r6));
1571da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_R7_OFFSET, offsetof (struct switch_stack, r7));
1581da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B0_OFFSET, offsetof (struct switch_stack, b0));
1591da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B1_OFFSET, offsetof (struct switch_stack, b1));
1601da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B2_OFFSET, offsetof (struct switch_stack, b2));
1611da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B3_OFFSET, offsetof (struct switch_stack, b3));
1621da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B4_OFFSET, offsetof (struct switch_stack, b4));
1631da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_B5_OFFSET, offsetof (struct switch_stack, b5));
1641da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_PFS_OFFSET, offsetof (struct switch_stack, ar_pfs));
1651da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_LC_OFFSET, offsetof (struct switch_stack, ar_lc));
1661da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_UNAT_OFFSET, offsetof (struct switch_stack, ar_unat));
1671da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_RNAT_OFFSET, offsetof (struct switch_stack, ar_rnat));
1681da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_AR_BSPSTORE_OFFSET, offsetof (struct switch_stack, ar_bspstore));
1691da177e4SLinus Torvalds DEFINE(IA64_SWITCH_STACK_PR_OFFSET, offsetof (struct switch_stack, pr));
1701da177e4SLinus Torvalds
1711da177e4SLinus Torvalds BLANK();
1721da177e4SLinus Torvalds
1731da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_IP_OFFSET, offsetof (struct sigcontext, sc_ip));
1741da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_AR_BSP_OFFSET, offsetof (struct sigcontext, sc_ar_bsp));
1751da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_AR_FPSR_OFFSET, offsetof (struct sigcontext, sc_ar_fpsr));
1761da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_AR_RNAT_OFFSET, offsetof (struct sigcontext, sc_ar_rnat));
1771da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_AR_UNAT_OFFSET, offsetof (struct sigcontext, sc_ar_unat));
1781da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_B0_OFFSET, offsetof (struct sigcontext, sc_br[0]));
1791da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_CFM_OFFSET, offsetof (struct sigcontext, sc_cfm));
1801da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_FLAGS_OFFSET, offsetof (struct sigcontext, sc_flags));
1811da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_FR6_OFFSET, offsetof (struct sigcontext, sc_fr[6]));
1821da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_PR_OFFSET, offsetof (struct sigcontext, sc_pr));
1831da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_R12_OFFSET, offsetof (struct sigcontext, sc_gr[12]));
1841da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_RBS_BASE_OFFSET,offsetof (struct sigcontext, sc_rbs_base));
1851da177e4SLinus Torvalds DEFINE(IA64_SIGCONTEXT_LOADRS_OFFSET, offsetof (struct sigcontext, sc_loadrs));
1861da177e4SLinus Torvalds
1871da177e4SLinus Torvalds BLANK();
1881da177e4SLinus Torvalds
1891da177e4SLinus Torvalds DEFINE(IA64_SIGPENDING_SIGNAL_OFFSET, offsetof (struct sigpending, signal));
1901da177e4SLinus Torvalds
1911da177e4SLinus Torvalds BLANK();
1921da177e4SLinus Torvalds
1931da177e4SLinus Torvalds DEFINE(IA64_SIGFRAME_ARG0_OFFSET, offsetof (struct sigframe, arg0));
1941da177e4SLinus Torvalds DEFINE(IA64_SIGFRAME_ARG1_OFFSET, offsetof (struct sigframe, arg1));
1951da177e4SLinus Torvalds DEFINE(IA64_SIGFRAME_ARG2_OFFSET, offsetof (struct sigframe, arg2));
1961da177e4SLinus Torvalds DEFINE(IA64_SIGFRAME_HANDLER_OFFSET, offsetof (struct sigframe, handler));
1971da177e4SLinus Torvalds DEFINE(IA64_SIGFRAME_SIGCONTEXT_OFFSET, offsetof (struct sigframe, sc));
1981da177e4SLinus Torvalds BLANK();
1991da177e4SLinus Torvalds /* for assembly files which can't include sched.h: */
2001da177e4SLinus Torvalds DEFINE(IA64_CLONE_VFORK, CLONE_VFORK);
2011da177e4SLinus Torvalds DEFINE(IA64_CLONE_VM, CLONE_VM);
2021da177e4SLinus Torvalds
2031da177e4SLinus Torvalds BLANK();
2041da177e4SLinus Torvalds DEFINE(IA64_CPUINFO_NSEC_PER_CYC_OFFSET,
2051da177e4SLinus Torvalds offsetof (struct cpuinfo_ia64, nsec_per_cyc));
2061da177e4SLinus Torvalds DEFINE(IA64_CPUINFO_PTCE_BASE_OFFSET,
2071da177e4SLinus Torvalds offsetof (struct cpuinfo_ia64, ptce_base));
2081da177e4SLinus Torvalds DEFINE(IA64_CPUINFO_PTCE_COUNT_OFFSET,
2091da177e4SLinus Torvalds offsetof (struct cpuinfo_ia64, ptce_count));
2101da177e4SLinus Torvalds DEFINE(IA64_CPUINFO_PTCE_STRIDE_OFFSET,
2111da177e4SLinus Torvalds offsetof (struct cpuinfo_ia64, ptce_stride));
2121da177e4SLinus Torvalds BLANK();
2131da177e4SLinus Torvalds DEFINE(IA64_TIMESPEC_TV_NSEC_OFFSET,
21482210fc7SArnd Bergmann offsetof (struct __kernel_old_timespec, tv_nsec));
215d4d1fc61STony Luck DEFINE(IA64_TIME_SN_SPEC_SNSEC_OFFSET,
216d4d1fc61STony Luck offsetof (struct time_sn_spec, snsec));
2171da177e4SLinus Torvalds
2181da177e4SLinus Torvalds DEFINE(CLONE_SETTLS_BIT, 19);
2191da177e4SLinus Torvalds #if CLONE_SETTLS != (1<<19)
2201da177e4SLinus Torvalds # error "CLONE_SETTLS_BIT incorrect, please fix"
2211da177e4SLinus Torvalds #endif
2221da177e4SLinus Torvalds
2231da177e4SLinus Torvalds BLANK();
2247f613c7dSKeith Owens DEFINE(IA64_MCA_CPU_MCA_STACK_OFFSET,
2257f613c7dSKeith Owens offsetof (struct ia64_mca_cpu, mca_stack));
2261da177e4SLinus Torvalds DEFINE(IA64_MCA_CPU_INIT_STACK_OFFSET,
2271da177e4SLinus Torvalds offsetof (struct ia64_mca_cpu, init_stack));
2281da177e4SLinus Torvalds BLANK();
2297f613c7dSKeith Owens DEFINE(IA64_SAL_OS_STATE_OS_GP_OFFSET,
2307f613c7dSKeith Owens offsetof (struct ia64_sal_os_state, os_gp));
2317f613c7dSKeith Owens DEFINE(IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET,
2327f613c7dSKeith Owens offsetof (struct ia64_sal_os_state, proc_state_param));
233d270acbcSKeith Owens DEFINE(IA64_SAL_OS_STATE_SAL_RA_OFFSET,
234d270acbcSKeith Owens offsetof (struct ia64_sal_os_state, sal_ra));
235d270acbcSKeith Owens DEFINE(IA64_SAL_OS_STATE_SAL_GP_OFFSET,
236d270acbcSKeith Owens offsetof (struct ia64_sal_os_state, sal_gp));
237d270acbcSKeith Owens DEFINE(IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET,
238d270acbcSKeith Owens offsetof (struct ia64_sal_os_state, pal_min_state));
239d270acbcSKeith Owens DEFINE(IA64_SAL_OS_STATE_OS_STATUS_OFFSET,
240d270acbcSKeith Owens offsetof (struct ia64_sal_os_state, os_status));
241d270acbcSKeith Owens DEFINE(IA64_SAL_OS_STATE_CONTEXT_OFFSET,
242d270acbcSKeith Owens offsetof (struct ia64_sal_os_state, context));
2437f613c7dSKeith Owens DEFINE(IA64_SAL_OS_STATE_SIZE,
2447f613c7dSKeith Owens sizeof (struct ia64_sal_os_state));
245d270acbcSKeith Owens BLANK();
246d270acbcSKeith Owens
2477f613c7dSKeith Owens DEFINE(IA64_PMSA_GR_OFFSET,
248*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_gr));
2497f613c7dSKeith Owens DEFINE(IA64_PMSA_BANK1_GR_OFFSET,
250*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_bank1_gr));
2517f613c7dSKeith Owens DEFINE(IA64_PMSA_PR_OFFSET,
252*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_pr));
2537f613c7dSKeith Owens DEFINE(IA64_PMSA_BR0_OFFSET,
254*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_br0));
2557f613c7dSKeith Owens DEFINE(IA64_PMSA_RSC_OFFSET,
256*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_rsc));
2577f613c7dSKeith Owens DEFINE(IA64_PMSA_IIP_OFFSET,
258*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_iip));
2597f613c7dSKeith Owens DEFINE(IA64_PMSA_IPSR_OFFSET,
260*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_ipsr));
2617f613c7dSKeith Owens DEFINE(IA64_PMSA_IFS_OFFSET,
262*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_ifs));
2637f613c7dSKeith Owens DEFINE(IA64_PMSA_XIP_OFFSET,
264*2770ef7cSMasahiro Yamada offsetof(struct pal_min_state_area, pmsa_xip));
2657f613c7dSKeith Owens BLANK();
2667f613c7dSKeith Owens
2671da177e4SLinus Torvalds /* used by fsys_gettimeofday in arch/ia64/kernel/fsys.S */
26874a622beSThomas Gleixner DEFINE(IA64_GTOD_SEQ_OFFSET,
269646783a3SThomas Gleixner offsetof (struct fsyscall_gtod_data_t, seq));
2700aa366f3STony Luck DEFINE(IA64_GTOD_WALL_TIME_OFFSET,
2710aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, wall_time));
2720aa366f3STony Luck DEFINE(IA64_GTOD_MONO_TIME_OFFSET,
2730aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, monotonic_time));
2740aa366f3STony Luck DEFINE(IA64_CLKSRC_MASK_OFFSET,
2750aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, clk_mask));
2760aa366f3STony Luck DEFINE(IA64_CLKSRC_MULT_OFFSET,
2770aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, clk_mult));
2780aa366f3STony Luck DEFINE(IA64_CLKSRC_SHIFT_OFFSET,
2790aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, clk_shift));
2800aa366f3STony Luck DEFINE(IA64_CLKSRC_MMIO_OFFSET,
2810aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, clk_fsys_mmio));
2820aa366f3STony Luck DEFINE(IA64_CLKSRC_CYCLE_LAST_OFFSET,
2830aa366f3STony Luck offsetof (struct fsyscall_gtod_data_t, clk_cycle_last));
2840aa366f3STony Luck DEFINE(IA64_ITC_JITTER_OFFSET,
2850aa366f3STony Luck offsetof (struct itc_jitter_data_t, itc_jitter));
2860aa366f3STony Luck DEFINE(IA64_ITC_LASTCYCLE_OFFSET,
2870aa366f3STony Luck offsetof (struct itc_jitter_data_t, itc_lastcycle));
288b31c09bdSIsaku Yamahata
2891da177e4SLinus Torvalds }
290