.. | .. |
---|
5 | 5 | |
---|
6 | 6 | #include <asm/ia32.h> |
---|
7 | 7 | |
---|
8 | | -#define __SYSCALL_64(nr, sym, qual) [nr] = 1, |
---|
9 | | -static char syscalls_64[] = { |
---|
10 | | -#include <asm/syscalls_64.h> |
---|
11 | | -}; |
---|
12 | | -#define __SYSCALL_I386(nr, sym, qual) [nr] = 1, |
---|
13 | | -static char syscalls_ia32[] = { |
---|
14 | | -#include <asm/syscalls_32.h> |
---|
15 | | -}; |
---|
16 | | - |
---|
17 | 8 | #if defined(CONFIG_KVM_GUEST) && defined(CONFIG_PARAVIRT_SPINLOCKS) |
---|
18 | 9 | #include <asm/kvm_para.h> |
---|
19 | 10 | #endif |
---|
.. | .. |
---|
21 | 12 | int main(void) |
---|
22 | 13 | { |
---|
23 | 14 | #ifdef CONFIG_PARAVIRT |
---|
24 | | - OFFSET(PV_CPU_usergs_sysret64, pv_cpu_ops, usergs_sysret64); |
---|
25 | | - OFFSET(PV_CPU_swapgs, pv_cpu_ops, swapgs); |
---|
| 15 | +#ifdef CONFIG_PARAVIRT_XXL |
---|
| 16 | + OFFSET(PV_CPU_usergs_sysret64, paravirt_patch_template, |
---|
| 17 | + cpu.usergs_sysret64); |
---|
26 | 18 | #ifdef CONFIG_DEBUG_ENTRY |
---|
27 | | - OFFSET(PV_IRQ_save_fl, pv_irq_ops, save_fl); |
---|
| 19 | + OFFSET(PV_IRQ_save_fl, paravirt_patch_template, irq.save_fl); |
---|
| 20 | +#endif |
---|
28 | 21 | #endif |
---|
29 | 22 | BLANK(); |
---|
30 | 23 | #endif |
---|
.. | .. |
---|
59 | 52 | ENTRY(cr2); |
---|
60 | 53 | ENTRY(cr3); |
---|
61 | 54 | ENTRY(cr4); |
---|
62 | | - ENTRY(cr8); |
---|
63 | 55 | ENTRY(gdt_desc); |
---|
64 | 56 | BLANK(); |
---|
65 | 57 | #undef ENTRY |
---|
66 | 58 | |
---|
67 | | - OFFSET(TSS_ist, tss_struct, x86_tss.ist); |
---|
68 | 59 | BLANK(); |
---|
69 | 60 | |
---|
70 | 61 | #ifdef CONFIG_STACKPROTECTOR |
---|
71 | | - DEFINE(stack_canary_offset, offsetof(union irq_stack_union, stack_canary)); |
---|
| 62 | + DEFINE(stack_canary_offset, offsetof(struct fixed_percpu_data, stack_canary)); |
---|
72 | 63 | BLANK(); |
---|
73 | 64 | #endif |
---|
74 | | - |
---|
75 | | - DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1); |
---|
76 | | - DEFINE(NR_syscalls, sizeof(syscalls_64)); |
---|
77 | | - |
---|
78 | | - DEFINE(__NR_syscall_compat_max, sizeof(syscalls_ia32) - 1); |
---|
79 | | - DEFINE(IA32_NR_syscalls, sizeof(syscalls_ia32)); |
---|
80 | | - |
---|
81 | 65 | return 0; |
---|
82 | 66 | } |
---|