1 #ifndef __ASM_OFFSETS_H__
2 #define __ASM_OFFSETS_H__
6 * This file was generated by Kbuild
10 #define IA32_SIGCONTEXT_ax 44 /* offsetof(struct sigcontext, ax) # */
11 #define IA32_SIGCONTEXT_bx 32 /* offsetof(struct sigcontext, bx) # */
12 #define IA32_SIGCONTEXT_cx 40 /* offsetof(struct sigcontext, cx) # */
13 #define IA32_SIGCONTEXT_dx 36 /* offsetof(struct sigcontext, dx) # */
14 #define IA32_SIGCONTEXT_si 20 /* offsetof(struct sigcontext, si) # */
15 #define IA32_SIGCONTEXT_di 16 /* offsetof(struct sigcontext, di) # */
16 #define IA32_SIGCONTEXT_bp 24 /* offsetof(struct sigcontext, bp) # */
17 #define IA32_SIGCONTEXT_sp 28 /* offsetof(struct sigcontext, sp) # */
18 #define IA32_SIGCONTEXT_ip 56 /* offsetof(struct sigcontext, ip) # */
20 #define CPUINFO_x86 0 /* offsetof(struct cpuinfo_x86, x86) # */
21 #define CPUINFO_x86_vendor 1 /* offsetof(struct cpuinfo_x86, x86_vendor) # */
22 #define CPUINFO_x86_model 2 /* offsetof(struct cpuinfo_x86, x86_model) # */
23 #define CPUINFO_x86_mask 3 /* offsetof(struct cpuinfo_x86, x86_mask) # */
24 #define CPUINFO_hard_math 6 /* offsetof(struct cpuinfo_x86, hard_math) # */
25 #define CPUINFO_cpuid_level 12 /* offsetof(struct cpuinfo_x86, cpuid_level) # */
26 #define CPUINFO_x86_capability 16 /* offsetof(struct cpuinfo_x86, x86_capability) # */
27 #define CPUINFO_x86_vendor_id 48 /* offsetof(struct cpuinfo_x86, x86_vendor_id) # */
29 #define TI_task 0 /* offsetof(struct thread_info, task) # */
30 #define TI_exec_domain 4 /* offsetof(struct thread_info, exec_domain) # */
31 #define TI_flags 8 /* offsetof(struct thread_info, flags) # */
32 #define TI_status 12 /* offsetof(struct thread_info, status) # */
33 #define TI_preempt_count 20 /* offsetof(struct thread_info, preempt_count) # */
34 #define TI_addr_limit 24 /* offsetof(struct thread_info, addr_limit) # */
35 #define TI_restart_block 28 /* offsetof(struct thread_info, restart_block) # */
36 #define TI_sysenter_return 56 /* offsetof(struct thread_info, sysenter_return) # */
37 #define TI_cpu 16 /* offsetof(struct thread_info, cpu) # */
39 #define GDS_size 0 /* offsetof(struct desc_ptr, size) # */
40 #define GDS_address 2 /* offsetof(struct desc_ptr, address) # */
42 #define PT_EBX 0 /* offsetof(struct pt_regs, bx) # */
43 #define PT_ECX 4 /* offsetof(struct pt_regs, cx) # */
44 #define PT_EDX 8 /* offsetof(struct pt_regs, dx) # */
45 #define PT_ESI 12 /* offsetof(struct pt_regs, si) # */
46 #define PT_EDI 16 /* offsetof(struct pt_regs, di) # */
47 #define PT_EBP 20 /* offsetof(struct pt_regs, bp) # */
48 #define PT_EAX 24 /* offsetof(struct pt_regs, ax) # */
49 #define PT_DS 28 /* offsetof(struct pt_regs, ds) # */
50 #define PT_ES 32 /* offsetof(struct pt_regs, es) # */
51 #define PT_FS 36 /* offsetof(struct pt_regs, fs) # */
52 #define PT_ORIG_EAX 40 /* offsetof(struct pt_regs, orig_ax) # */
53 #define PT_EIP 44 /* offsetof(struct pt_regs, ip) # */
54 #define PT_CS 48 /* offsetof(struct pt_regs, cs) # */
55 #define PT_EFLAGS 52 /* offsetof(struct pt_regs, flags) # */
56 #define PT_OLDESP 56 /* offsetof(struct pt_regs, sp) # */
57 #define PT_OLDSS 60 /* offsetof(struct pt_regs, ss) # */
59 #define EXEC_DOMAIN_handler 4 /* offsetof(struct exec_domain, handler) # */
60 #define IA32_RT_SIGFRAME_sigcontext 164 /* offsetof(struct rt_sigframe, uc.uc_mcontext) # */
62 #define pbe_address 0 /* offsetof(struct pbe, address) # */
63 #define pbe_orig_address 4 /* offsetof(struct pbe, orig_address) # */
64 #define pbe_next 8 /* offsetof(struct pbe, next) # */
65 #define TSS_sysenter_sp0 -8572 /* offsetof(struct tss_struct, x86_tss.sp0) - sizeof(struct tss_struct) # */
66 #define PAGE_SIZE_asm 4096 /* PAGE_SIZE # */
67 #define PAGE_SHIFT_asm 12 /* PAGE_SHIFT # */
68 #define PTRS_PER_PTE 1024 /* PTRS_PER_PTE # */
69 #define PTRS_PER_PMD 1 /* PTRS_PER_PMD # */
70 #define PTRS_PER_PGD 1024 /* PTRS_PER_PGD # */
71 #define crypto_tfm_ctx_offset 48 /* offsetof(struct crypto_tfm, __crt_ctx) # */
73 #define BP_scratch 484 /* offsetof(struct boot_params, scratch) # */
74 #define BP_loadflags 529 /* offsetof(struct boot_params, hdr.loadflags) # */
75 #define BP_hardware_subarch 572 /* offsetof(struct boot_params, hdr.hardware_subarch) # */
76 #define BP_version 518 /* offsetof(struct boot_params, hdr.version) # */