5 #undef _ASM_X86_UNISTD_64_H
6 #define __SYSCALL(nr, sym) [nr] = 1,
7 static char syscalls
[] = {
8 #include <asm/unistd.h>
13 #ifdef CONFIG_PARAVIRT
14 OFFSET(PV_IRQ_adjust_exception_frame
, pv_irq_ops
, adjust_exception_frame
);
15 OFFSET(PV_CPU_usergs_sysret32
, pv_cpu_ops
, usergs_sysret32
);
16 OFFSET(PV_CPU_usergs_sysret64
, pv_cpu_ops
, usergs_sysret64
);
17 OFFSET(PV_CPU_swapgs
, pv_cpu_ops
, swapgs
);
21 #ifdef CONFIG_IA32_EMULATION
22 OFFSET(TI_sysenter_return
, thread_info
, sysenter_return
);
25 #define ENTRY(entry) OFFSET(IA32_SIGCONTEXT_ ## entry, sigcontext_ia32, entry)
38 OFFSET(IA32_RT_SIGFRAME_sigcontext
, rt_sigframe_ia32
, uc
.uc_mcontext
);
42 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
63 #define ENTRY(entry) OFFSET(saved_context_ ## entry, saved_context, entry)
72 OFFSET(TSS_ist
, tss_struct
, x86_tss
.ist
);
75 DEFINE(__NR_syscall_max
, sizeof(syscalls
) - 1);