diff options
author | Pasha <pasha@member.fsf.org> | 2024-02-20 18:55:36 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2024-02-20 18:55:36 +0000 |
commit | 6fca8abef7e6d7be1a9e6d93dd0f2b7fbc5b28e5 (patch) | |
tree | 9f5ccbaa6ec19ff5a42d9b3cde01f739e1d7c77d /riscv/include/generated/asm-offsets.h | |
parent | 5e0b8d508ed51004bd836384293be00950ee62c9 (diff) | |
download | gnumach-riscv-master.tar.gz gnumach-riscv-master.tar.bz2 |
Diffstat (limited to 'riscv/include/generated/asm-offsets.h')
-rw-r--r-- | riscv/include/generated/asm-offsets.h | 304 |
1 files changed, 304 insertions, 0 deletions
diff --git a/riscv/include/generated/asm-offsets.h b/riscv/include/generated/asm-offsets.h new file mode 100644 index 0000000..3fd2fe6 --- /dev/null +++ b/riscv/include/generated/asm-offsets.h @@ -0,0 +1,304 @@ +#ifndef __ASM_OFFSETS_H__ +#define __ASM_OFFSETS_H__ +/* + * DO NOT MODIFY. + * + * This file was generated by Kbuild + */ + +#define TASK_THREAD_RA 2576 /* offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_SP 2584 /* offsetof(struct task_struct, thread.sp) */ +#define TASK_THREAD_S0 2592 /* offsetof(struct task_struct, thread.s[0]) */ +#define TASK_THREAD_S1 2600 /* offsetof(struct task_struct, thread.s[1]) */ +#define TASK_THREAD_S2 2608 /* offsetof(struct task_struct, thread.s[2]) */ +#define TASK_THREAD_S3 2616 /* offsetof(struct task_struct, thread.s[3]) */ +#define TASK_THREAD_S4 2624 /* offsetof(struct task_struct, thread.s[4]) */ +#define TASK_THREAD_S5 2632 /* offsetof(struct task_struct, thread.s[5]) */ +#define TASK_THREAD_S6 2640 /* offsetof(struct task_struct, thread.s[6]) */ +#define TASK_THREAD_S7 2648 /* offsetof(struct task_struct, thread.s[7]) */ +#define TASK_THREAD_S8 2656 /* offsetof(struct task_struct, thread.s[8]) */ +#define TASK_THREAD_S9 2664 /* offsetof(struct task_struct, thread.s[9]) */ +#define TASK_THREAD_S10 2672 /* offsetof(struct task_struct, thread.s[10]) */ +#define TASK_THREAD_S11 2680 /* offsetof(struct task_struct, thread.s[11]) */ +#define TASK_TI_FLAGS 0 /* offsetof(struct task_struct, thread_info.flags) */ +#define TASK_TI_PREEMPT_COUNT 8 /* offsetof(struct task_struct, thread_info.preempt_count) */ +#define TASK_TI_KERNEL_SP 16 /* offsetof(struct task_struct, thread_info.kernel_sp) */ +#define TASK_TI_USER_SP 24 /* offsetof(struct task_struct, thread_info.user_sp) */ +#define TASK_TI_CPU_NUM 32 /* offsetof(struct task_struct, thread_info.cpu) */ +#define TASK_THREAD_F0 2688 /* offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F1 2696 /* offsetof(struct task_struct, thread.fstate.f[1]) */ +#define TASK_THREAD_F2 2704 /* offsetof(struct task_struct, thread.fstate.f[2]) */ +#define TASK_THREAD_F3 2712 /* offsetof(struct task_struct, thread.fstate.f[3]) */ +#define TASK_THREAD_F4 2720 /* offsetof(struct task_struct, thread.fstate.f[4]) */ +#define TASK_THREAD_F5 2728 /* offsetof(struct task_struct, thread.fstate.f[5]) */ +#define TASK_THREAD_F6 2736 /* offsetof(struct task_struct, thread.fstate.f[6]) */ +#define TASK_THREAD_F7 2744 /* offsetof(struct task_struct, thread.fstate.f[7]) */ +#define TASK_THREAD_F8 2752 /* offsetof(struct task_struct, thread.fstate.f[8]) */ +#define TASK_THREAD_F9 2760 /* offsetof(struct task_struct, thread.fstate.f[9]) */ +#define TASK_THREAD_F10 2768 /* offsetof(struct task_struct, thread.fstate.f[10]) */ +#define TASK_THREAD_F11 2776 /* offsetof(struct task_struct, thread.fstate.f[11]) */ +#define TASK_THREAD_F12 2784 /* offsetof(struct task_struct, thread.fstate.f[12]) */ +#define TASK_THREAD_F13 2792 /* offsetof(struct task_struct, thread.fstate.f[13]) */ +#define TASK_THREAD_F14 2800 /* offsetof(struct task_struct, thread.fstate.f[14]) */ +#define TASK_THREAD_F15 2808 /* offsetof(struct task_struct, thread.fstate.f[15]) */ +#define TASK_THREAD_F16 2816 /* offsetof(struct task_struct, thread.fstate.f[16]) */ +#define TASK_THREAD_F17 2824 /* offsetof(struct task_struct, thread.fstate.f[17]) */ +#define TASK_THREAD_F18 2832 /* offsetof(struct task_struct, thread.fstate.f[18]) */ +#define TASK_THREAD_F19 2840 /* offsetof(struct task_struct, thread.fstate.f[19]) */ +#define TASK_THREAD_F20 2848 /* offsetof(struct task_struct, thread.fstate.f[20]) */ +#define TASK_THREAD_F21 2856 /* offsetof(struct task_struct, thread.fstate.f[21]) */ +#define TASK_THREAD_F22 2864 /* offsetof(struct task_struct, thread.fstate.f[22]) */ +#define TASK_THREAD_F23 2872 /* offsetof(struct task_struct, thread.fstate.f[23]) */ +#define TASK_THREAD_F24 2880 /* offsetof(struct task_struct, thread.fstate.f[24]) */ +#define TASK_THREAD_F25 2888 /* offsetof(struct task_struct, thread.fstate.f[25]) */ +#define TASK_THREAD_F26 2896 /* offsetof(struct task_struct, thread.fstate.f[26]) */ +#define TASK_THREAD_F27 2904 /* offsetof(struct task_struct, thread.fstate.f[27]) */ +#define TASK_THREAD_F28 2912 /* offsetof(struct task_struct, thread.fstate.f[28]) */ +#define TASK_THREAD_F29 2920 /* offsetof(struct task_struct, thread.fstate.f[29]) */ +#define TASK_THREAD_F30 2928 /* offsetof(struct task_struct, thread.fstate.f[30]) */ +#define TASK_THREAD_F31 2936 /* offsetof(struct task_struct, thread.fstate.f[31]) */ +#define TASK_THREAD_FCSR 2944 /* offsetof(struct task_struct, thread.fstate.fcsr) */ +#define TSK_STACK_CANARY 1088 /* offsetof(struct task_struct, stack_canary) */ +#define PT_SIZE 288 /* sizeof(struct pt_regs) */ +#define PT_EPC 0 /* offsetof(struct pt_regs, epc) */ +#define PT_RA 8 /* offsetof(struct pt_regs, ra) */ +#define PT_FP 64 /* offsetof(struct pt_regs, s0) */ +#define PT_S0 64 /* offsetof(struct pt_regs, s0) */ +#define PT_S1 72 /* offsetof(struct pt_regs, s1) */ +#define PT_S2 144 /* offsetof(struct pt_regs, s2) */ +#define PT_S3 152 /* offsetof(struct pt_regs, s3) */ +#define PT_S4 160 /* offsetof(struct pt_regs, s4) */ +#define PT_S5 168 /* offsetof(struct pt_regs, s5) */ +#define PT_S6 176 /* offsetof(struct pt_regs, s6) */ +#define PT_S7 184 /* offsetof(struct pt_regs, s7) */ +#define PT_S8 192 /* offsetof(struct pt_regs, s8) */ +#define PT_S9 200 /* offsetof(struct pt_regs, s9) */ +#define PT_S10 208 /* offsetof(struct pt_regs, s10) */ +#define PT_S11 216 /* offsetof(struct pt_regs, s11) */ +#define PT_SP 16 /* offsetof(struct pt_regs, sp) */ +#define PT_TP 32 /* offsetof(struct pt_regs, tp) */ +#define PT_A0 80 /* offsetof(struct pt_regs, a0) */ +#define PT_A1 88 /* offsetof(struct pt_regs, a1) */ +#define PT_A2 96 /* offsetof(struct pt_regs, a2) */ +#define PT_A3 104 /* offsetof(struct pt_regs, a3) */ +#define PT_A4 112 /* offsetof(struct pt_regs, a4) */ +#define PT_A5 120 /* offsetof(struct pt_regs, a5) */ +#define PT_A6 128 /* offsetof(struct pt_regs, a6) */ +#define PT_A7 136 /* offsetof(struct pt_regs, a7) */ +#define PT_T0 40 /* offsetof(struct pt_regs, t0) */ +#define PT_T1 48 /* offsetof(struct pt_regs, t1) */ +#define PT_T2 56 /* offsetof(struct pt_regs, t2) */ +#define PT_T3 224 /* offsetof(struct pt_regs, t3) */ +#define PT_T4 232 /* offsetof(struct pt_regs, t4) */ +#define PT_T5 240 /* offsetof(struct pt_regs, t5) */ +#define PT_T6 248 /* offsetof(struct pt_regs, t6) */ +#define PT_GP 24 /* offsetof(struct pt_regs, gp) */ +#define PT_ORIG_A0 280 /* offsetof(struct pt_regs, orig_a0) */ +#define PT_STATUS 256 /* offsetof(struct pt_regs, status) */ +#define PT_BADADDR 264 /* offsetof(struct pt_regs, badaddr) */ +#define PT_CAUSE 272 /* offsetof(struct pt_regs, cause) */ +#define SUSPEND_CONTEXT_REGS 0 /* offsetof(struct suspend_context, regs) */ +#define HIBERN_PBE_ADDR 0 /* offsetof(struct pbe, address) */ +#define HIBERN_PBE_ORIG 8 /* offsetof(struct pbe, orig_address) */ +#define HIBERN_PBE_NEXT 16 /* offsetof(struct pbe, next) */ +#define KVM_ARCH_GUEST_ZERO 944 /* offsetof(struct kvm_vcpu_arch, guest_context.zero) */ +#define KVM_ARCH_GUEST_RA 952 /* offsetof(struct kvm_vcpu_arch, guest_context.ra) */ +#define KVM_ARCH_GUEST_SP 960 /* offsetof(struct kvm_vcpu_arch, guest_context.sp) */ +#define KVM_ARCH_GUEST_GP 968 /* offsetof(struct kvm_vcpu_arch, guest_context.gp) */ +#define KVM_ARCH_GUEST_TP 976 /* offsetof(struct kvm_vcpu_arch, guest_context.tp) */ +#define KVM_ARCH_GUEST_T0 984 /* offsetof(struct kvm_vcpu_arch, guest_context.t0) */ +#define KVM_ARCH_GUEST_T1 992 /* offsetof(struct kvm_vcpu_arch, guest_context.t1) */ +#define KVM_ARCH_GUEST_T2 1000 /* offsetof(struct kvm_vcpu_arch, guest_context.t2) */ +#define KVM_ARCH_GUEST_S0 1008 /* offsetof(struct kvm_vcpu_arch, guest_context.s0) */ +#define KVM_ARCH_GUEST_S1 1016 /* offsetof(struct kvm_vcpu_arch, guest_context.s1) */ +#define KVM_ARCH_GUEST_A0 1024 /* offsetof(struct kvm_vcpu_arch, guest_context.a0) */ +#define KVM_ARCH_GUEST_A1 1032 /* offsetof(struct kvm_vcpu_arch, guest_context.a1) */ +#define KVM_ARCH_GUEST_A2 1040 /* offsetof(struct kvm_vcpu_arch, guest_context.a2) */ +#define KVM_ARCH_GUEST_A3 1048 /* offsetof(struct kvm_vcpu_arch, guest_context.a3) */ +#define KVM_ARCH_GUEST_A4 1056 /* offsetof(struct kvm_vcpu_arch, guest_context.a4) */ +#define KVM_ARCH_GUEST_A5 1064 /* offsetof(struct kvm_vcpu_arch, guest_context.a5) */ +#define KVM_ARCH_GUEST_A6 1072 /* offsetof(struct kvm_vcpu_arch, guest_context.a6) */ +#define KVM_ARCH_GUEST_A7 1080 /* offsetof(struct kvm_vcpu_arch, guest_context.a7) */ +#define KVM_ARCH_GUEST_S2 1088 /* offsetof(struct kvm_vcpu_arch, guest_context.s2) */ +#define KVM_ARCH_GUEST_S3 1096 /* offsetof(struct kvm_vcpu_arch, guest_context.s3) */ +#define KVM_ARCH_GUEST_S4 1104 /* offsetof(struct kvm_vcpu_arch, guest_context.s4) */ +#define KVM_ARCH_GUEST_S5 1112 /* offsetof(struct kvm_vcpu_arch, guest_context.s5) */ +#define KVM_ARCH_GUEST_S6 1120 /* offsetof(struct kvm_vcpu_arch, guest_context.s6) */ +#define KVM_ARCH_GUEST_S7 1128 /* offsetof(struct kvm_vcpu_arch, guest_context.s7) */ +#define KVM_ARCH_GUEST_S8 1136 /* offsetof(struct kvm_vcpu_arch, guest_context.s8) */ +#define KVM_ARCH_GUEST_S9 1144 /* offsetof(struct kvm_vcpu_arch, guest_context.s9) */ +#define KVM_ARCH_GUEST_S10 1152 /* offsetof(struct kvm_vcpu_arch, guest_context.s10) */ +#define KVM_ARCH_GUEST_S11 1160 /* offsetof(struct kvm_vcpu_arch, guest_context.s11) */ +#define KVM_ARCH_GUEST_T3 1168 /* offsetof(struct kvm_vcpu_arch, guest_context.t3) */ +#define KVM_ARCH_GUEST_T4 1176 /* offsetof(struct kvm_vcpu_arch, guest_context.t4) */ +#define KVM_ARCH_GUEST_T5 1184 /* offsetof(struct kvm_vcpu_arch, guest_context.t5) */ +#define KVM_ARCH_GUEST_T6 1192 /* offsetof(struct kvm_vcpu_arch, guest_context.t6) */ +#define KVM_ARCH_GUEST_SEPC 1200 /* offsetof(struct kvm_vcpu_arch, guest_context.sepc) */ +#define KVM_ARCH_GUEST_SSTATUS 1208 /* offsetof(struct kvm_vcpu_arch, guest_context.sstatus) */ +#define KVM_ARCH_GUEST_HSTATUS 1216 /* offsetof(struct kvm_vcpu_arch, guest_context.hstatus) */ +#define KVM_ARCH_GUEST_SCOUNTEREN 1880 /* offsetof(struct kvm_vcpu_arch, guest_csr.scounteren) */ +#define KVM_ARCH_HOST_ZERO 80 /* offsetof(struct kvm_vcpu_arch, host_context.zero) */ +#define KVM_ARCH_HOST_RA 88 /* offsetof(struct kvm_vcpu_arch, host_context.ra) */ +#define KVM_ARCH_HOST_SP 96 /* offsetof(struct kvm_vcpu_arch, host_context.sp) */ +#define KVM_ARCH_HOST_GP 104 /* offsetof(struct kvm_vcpu_arch, host_context.gp) */ +#define KVM_ARCH_HOST_TP 112 /* offsetof(struct kvm_vcpu_arch, host_context.tp) */ +#define KVM_ARCH_HOST_T0 120 /* offsetof(struct kvm_vcpu_arch, host_context.t0) */ +#define KVM_ARCH_HOST_T1 128 /* offsetof(struct kvm_vcpu_arch, host_context.t1) */ +#define KVM_ARCH_HOST_T2 136 /* offsetof(struct kvm_vcpu_arch, host_context.t2) */ +#define KVM_ARCH_HOST_S0 144 /* offsetof(struct kvm_vcpu_arch, host_context.s0) */ +#define KVM_ARCH_HOST_S1 152 /* offsetof(struct kvm_vcpu_arch, host_context.s1) */ +#define KVM_ARCH_HOST_A0 160 /* offsetof(struct kvm_vcpu_arch, host_context.a0) */ +#define KVM_ARCH_HOST_A1 168 /* offsetof(struct kvm_vcpu_arch, host_context.a1) */ +#define KVM_ARCH_HOST_A2 176 /* offsetof(struct kvm_vcpu_arch, host_context.a2) */ +#define KVM_ARCH_HOST_A3 184 /* offsetof(struct kvm_vcpu_arch, host_context.a3) */ +#define KVM_ARCH_HOST_A4 192 /* offsetof(struct kvm_vcpu_arch, host_context.a4) */ +#define KVM_ARCH_HOST_A5 200 /* offsetof(struct kvm_vcpu_arch, host_context.a5) */ +#define KVM_ARCH_HOST_A6 208 /* offsetof(struct kvm_vcpu_arch, host_context.a6) */ +#define KVM_ARCH_HOST_A7 216 /* offsetof(struct kvm_vcpu_arch, host_context.a7) */ +#define KVM_ARCH_HOST_S2 224 /* offsetof(struct kvm_vcpu_arch, host_context.s2) */ +#define KVM_ARCH_HOST_S3 232 /* offsetof(struct kvm_vcpu_arch, host_context.s3) */ +#define KVM_ARCH_HOST_S4 240 /* offsetof(struct kvm_vcpu_arch, host_context.s4) */ +#define KVM_ARCH_HOST_S5 248 /* offsetof(struct kvm_vcpu_arch, host_context.s5) */ +#define KVM_ARCH_HOST_S6 256 /* offsetof(struct kvm_vcpu_arch, host_context.s6) */ +#define KVM_ARCH_HOST_S7 264 /* offsetof(struct kvm_vcpu_arch, host_context.s7) */ +#define KVM_ARCH_HOST_S8 272 /* offsetof(struct kvm_vcpu_arch, host_context.s8) */ +#define KVM_ARCH_HOST_S9 280 /* offsetof(struct kvm_vcpu_arch, host_context.s9) */ +#define KVM_ARCH_HOST_S10 288 /* offsetof(struct kvm_vcpu_arch, host_context.s10) */ +#define KVM_ARCH_HOST_S11 296 /* offsetof(struct kvm_vcpu_arch, host_context.s11) */ +#define KVM_ARCH_HOST_T3 304 /* offsetof(struct kvm_vcpu_arch, host_context.t3) */ +#define KVM_ARCH_HOST_T4 312 /* offsetof(struct kvm_vcpu_arch, host_context.t4) */ +#define KVM_ARCH_HOST_T5 320 /* offsetof(struct kvm_vcpu_arch, host_context.t5) */ +#define KVM_ARCH_HOST_T6 328 /* offsetof(struct kvm_vcpu_arch, host_context.t6) */ +#define KVM_ARCH_HOST_SEPC 336 /* offsetof(struct kvm_vcpu_arch, host_context.sepc) */ +#define KVM_ARCH_HOST_SSTATUS 344 /* offsetof(struct kvm_vcpu_arch, host_context.sstatus) */ +#define KVM_ARCH_HOST_HSTATUS 352 /* offsetof(struct kvm_vcpu_arch, host_context.hstatus) */ +#define KVM_ARCH_HOST_SSCRATCH 40 /* offsetof(struct kvm_vcpu_arch, host_sscratch) */ +#define KVM_ARCH_HOST_STVEC 48 /* offsetof(struct kvm_vcpu_arch, host_stvec) */ +#define KVM_ARCH_HOST_SCOUNTEREN 56 /* offsetof(struct kvm_vcpu_arch, host_scounteren) */ +#define KVM_ARCH_TRAP_SEPC 0 /* offsetof(struct kvm_cpu_trap, sepc) */ +#define KVM_ARCH_TRAP_SCAUSE 8 /* offsetof(struct kvm_cpu_trap, scause) */ +#define KVM_ARCH_TRAP_STVAL 16 /* offsetof(struct kvm_cpu_trap, stval) */ +#define KVM_ARCH_TRAP_HTVAL 24 /* offsetof(struct kvm_cpu_trap, htval) */ +#define KVM_ARCH_TRAP_HTINST 32 /* offsetof(struct kvm_cpu_trap, htinst) */ +#define KVM_ARCH_FP_F_F0 288 /* offsetof(struct kvm_cpu_context, fp.f.f[0]) */ +#define KVM_ARCH_FP_F_F1 292 /* offsetof(struct kvm_cpu_context, fp.f.f[1]) */ +#define KVM_ARCH_FP_F_F2 296 /* offsetof(struct kvm_cpu_context, fp.f.f[2]) */ +#define KVM_ARCH_FP_F_F3 300 /* offsetof(struct kvm_cpu_context, fp.f.f[3]) */ +#define KVM_ARCH_FP_F_F4 304 /* offsetof(struct kvm_cpu_context, fp.f.f[4]) */ +#define KVM_ARCH_FP_F_F5 308 /* offsetof(struct kvm_cpu_context, fp.f.f[5]) */ +#define KVM_ARCH_FP_F_F6 312 /* offsetof(struct kvm_cpu_context, fp.f.f[6]) */ +#define KVM_ARCH_FP_F_F7 316 /* offsetof(struct kvm_cpu_context, fp.f.f[7]) */ +#define KVM_ARCH_FP_F_F8 320 /* offsetof(struct kvm_cpu_context, fp.f.f[8]) */ +#define KVM_ARCH_FP_F_F9 324 /* offsetof(struct kvm_cpu_context, fp.f.f[9]) */ +#define KVM_ARCH_FP_F_F10 328 /* offsetof(struct kvm_cpu_context, fp.f.f[10]) */ +#define KVM_ARCH_FP_F_F11 332 /* offsetof(struct kvm_cpu_context, fp.f.f[11]) */ +#define KVM_ARCH_FP_F_F12 336 /* offsetof(struct kvm_cpu_context, fp.f.f[12]) */ +#define KVM_ARCH_FP_F_F13 340 /* offsetof(struct kvm_cpu_context, fp.f.f[13]) */ +#define KVM_ARCH_FP_F_F14 344 /* offsetof(struct kvm_cpu_context, fp.f.f[14]) */ +#define KVM_ARCH_FP_F_F15 348 /* offsetof(struct kvm_cpu_context, fp.f.f[15]) */ +#define KVM_ARCH_FP_F_F16 352 /* offsetof(struct kvm_cpu_context, fp.f.f[16]) */ +#define KVM_ARCH_FP_F_F17 356 /* offsetof(struct kvm_cpu_context, fp.f.f[17]) */ +#define KVM_ARCH_FP_F_F18 360 /* offsetof(struct kvm_cpu_context, fp.f.f[18]) */ +#define KVM_ARCH_FP_F_F19 364 /* offsetof(struct kvm_cpu_context, fp.f.f[19]) */ +#define KVM_ARCH_FP_F_F20 368 /* offsetof(struct kvm_cpu_context, fp.f.f[20]) */ +#define KVM_ARCH_FP_F_F21 372 /* offsetof(struct kvm_cpu_context, fp.f.f[21]) */ +#define KVM_ARCH_FP_F_F22 376 /* offsetof(struct kvm_cpu_context, fp.f.f[22]) */ +#define KVM_ARCH_FP_F_F23 380 /* offsetof(struct kvm_cpu_context, fp.f.f[23]) */ +#define KVM_ARCH_FP_F_F24 384 /* offsetof(struct kvm_cpu_context, fp.f.f[24]) */ +#define KVM_ARCH_FP_F_F25 388 /* offsetof(struct kvm_cpu_context, fp.f.f[25]) */ +#define KVM_ARCH_FP_F_F26 392 /* offsetof(struct kvm_cpu_context, fp.f.f[26]) */ +#define KVM_ARCH_FP_F_F27 396 /* offsetof(struct kvm_cpu_context, fp.f.f[27]) */ +#define KVM_ARCH_FP_F_F28 400 /* offsetof(struct kvm_cpu_context, fp.f.f[28]) */ +#define KVM_ARCH_FP_F_F29 404 /* offsetof(struct kvm_cpu_context, fp.f.f[29]) */ +#define KVM_ARCH_FP_F_F30 408 /* offsetof(struct kvm_cpu_context, fp.f.f[30]) */ +#define KVM_ARCH_FP_F_F31 412 /* offsetof(struct kvm_cpu_context, fp.f.f[31]) */ +#define KVM_ARCH_FP_F_FCSR 416 /* offsetof(struct kvm_cpu_context, fp.f.fcsr) */ +#define KVM_ARCH_FP_D_F0 288 /* offsetof(struct kvm_cpu_context, fp.d.f[0]) */ +#define KVM_ARCH_FP_D_F1 296 /* offsetof(struct kvm_cpu_context, fp.d.f[1]) */ +#define KVM_ARCH_FP_D_F2 304 /* offsetof(struct kvm_cpu_context, fp.d.f[2]) */ +#define KVM_ARCH_FP_D_F3 312 /* offsetof(struct kvm_cpu_context, fp.d.f[3]) */ +#define KVM_ARCH_FP_D_F4 320 /* offsetof(struct kvm_cpu_context, fp.d.f[4]) */ +#define KVM_ARCH_FP_D_F5 328 /* offsetof(struct kvm_cpu_context, fp.d.f[5]) */ +#define KVM_ARCH_FP_D_F6 336 /* offsetof(struct kvm_cpu_context, fp.d.f[6]) */ +#define KVM_ARCH_FP_D_F7 344 /* offsetof(struct kvm_cpu_context, fp.d.f[7]) */ +#define KVM_ARCH_FP_D_F8 352 /* offsetof(struct kvm_cpu_context, fp.d.f[8]) */ +#define KVM_ARCH_FP_D_F9 360 /* offsetof(struct kvm_cpu_context, fp.d.f[9]) */ +#define KVM_ARCH_FP_D_F10 368 /* offsetof(struct kvm_cpu_context, fp.d.f[10]) */ +#define KVM_ARCH_FP_D_F11 376 /* offsetof(struct kvm_cpu_context, fp.d.f[11]) */ +#define KVM_ARCH_FP_D_F12 384 /* offsetof(struct kvm_cpu_context, fp.d.f[12]) */ +#define KVM_ARCH_FP_D_F13 392 /* offsetof(struct kvm_cpu_context, fp.d.f[13]) */ +#define KVM_ARCH_FP_D_F14 400 /* offsetof(struct kvm_cpu_context, fp.d.f[14]) */ +#define KVM_ARCH_FP_D_F15 408 /* offsetof(struct kvm_cpu_context, fp.d.f[15]) */ +#define KVM_ARCH_FP_D_F16 416 /* offsetof(struct kvm_cpu_context, fp.d.f[16]) */ +#define KVM_ARCH_FP_D_F17 424 /* offsetof(struct kvm_cpu_context, fp.d.f[17]) */ +#define KVM_ARCH_FP_D_F18 432 /* offsetof(struct kvm_cpu_context, fp.d.f[18]) */ +#define KVM_ARCH_FP_D_F19 440 /* offsetof(struct kvm_cpu_context, fp.d.f[19]) */ +#define KVM_ARCH_FP_D_F20 448 /* offsetof(struct kvm_cpu_context, fp.d.f[20]) */ +#define KVM_ARCH_FP_D_F21 456 /* offsetof(struct kvm_cpu_context, fp.d.f[21]) */ +#define KVM_ARCH_FP_D_F22 464 /* offsetof(struct kvm_cpu_context, fp.d.f[22]) */ +#define KVM_ARCH_FP_D_F23 472 /* offsetof(struct kvm_cpu_context, fp.d.f[23]) */ +#define KVM_ARCH_FP_D_F24 480 /* offsetof(struct kvm_cpu_context, fp.d.f[24]) */ +#define KVM_ARCH_FP_D_F25 488 /* offsetof(struct kvm_cpu_context, fp.d.f[25]) */ +#define KVM_ARCH_FP_D_F26 496 /* offsetof(struct kvm_cpu_context, fp.d.f[26]) */ +#define KVM_ARCH_FP_D_F27 504 /* offsetof(struct kvm_cpu_context, fp.d.f[27]) */ +#define KVM_ARCH_FP_D_F28 512 /* offsetof(struct kvm_cpu_context, fp.d.f[28]) */ +#define KVM_ARCH_FP_D_F29 520 /* offsetof(struct kvm_cpu_context, fp.d.f[29]) */ +#define KVM_ARCH_FP_D_F30 528 /* offsetof(struct kvm_cpu_context, fp.d.f[30]) */ +#define KVM_ARCH_FP_D_F31 536 /* offsetof(struct kvm_cpu_context, fp.d.f[31]) */ +#define KVM_ARCH_FP_D_FCSR 544 /* offsetof(struct kvm_cpu_context, fp.d.fcsr) */ +#define TASK_THREAD_RA_RA 0 /* offsetof(struct task_struct, thread.ra) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_SP_RA 8 /* offsetof(struct task_struct, thread.sp) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S0_RA 16 /* offsetof(struct task_struct, thread.s[0]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S1_RA 24 /* offsetof(struct task_struct, thread.s[1]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S2_RA 32 /* offsetof(struct task_struct, thread.s[2]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S3_RA 40 /* offsetof(struct task_struct, thread.s[3]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S4_RA 48 /* offsetof(struct task_struct, thread.s[4]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S5_RA 56 /* offsetof(struct task_struct, thread.s[5]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S6_RA 64 /* offsetof(struct task_struct, thread.s[6]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S7_RA 72 /* offsetof(struct task_struct, thread.s[7]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S8_RA 80 /* offsetof(struct task_struct, thread.s[8]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S9_RA 88 /* offsetof(struct task_struct, thread.s[9]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S10_RA 96 /* offsetof(struct task_struct, thread.s[10]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_S11_RA 104 /* offsetof(struct task_struct, thread.s[11]) - offsetof(struct task_struct, thread.ra) */ +#define TASK_THREAD_F0_F0 0 /* offsetof(struct task_struct, thread.fstate.f[0]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F1_F0 8 /* offsetof(struct task_struct, thread.fstate.f[1]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F2_F0 16 /* offsetof(struct task_struct, thread.fstate.f[2]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F3_F0 24 /* offsetof(struct task_struct, thread.fstate.f[3]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F4_F0 32 /* offsetof(struct task_struct, thread.fstate.f[4]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F5_F0 40 /* offsetof(struct task_struct, thread.fstate.f[5]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F6_F0 48 /* offsetof(struct task_struct, thread.fstate.f[6]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F7_F0 56 /* offsetof(struct task_struct, thread.fstate.f[7]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F8_F0 64 /* offsetof(struct task_struct, thread.fstate.f[8]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F9_F0 72 /* offsetof(struct task_struct, thread.fstate.f[9]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F10_F0 80 /* offsetof(struct task_struct, thread.fstate.f[10]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F11_F0 88 /* offsetof(struct task_struct, thread.fstate.f[11]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F12_F0 96 /* offsetof(struct task_struct, thread.fstate.f[12]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F13_F0 104 /* offsetof(struct task_struct, thread.fstate.f[13]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F14_F0 112 /* offsetof(struct task_struct, thread.fstate.f[14]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F15_F0 120 /* offsetof(struct task_struct, thread.fstate.f[15]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F16_F0 128 /* offsetof(struct task_struct, thread.fstate.f[16]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F17_F0 136 /* offsetof(struct task_struct, thread.fstate.f[17]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F18_F0 144 /* offsetof(struct task_struct, thread.fstate.f[18]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F19_F0 152 /* offsetof(struct task_struct, thread.fstate.f[19]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F20_F0 160 /* offsetof(struct task_struct, thread.fstate.f[20]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F21_F0 168 /* offsetof(struct task_struct, thread.fstate.f[21]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F22_F0 176 /* offsetof(struct task_struct, thread.fstate.f[22]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F23_F0 184 /* offsetof(struct task_struct, thread.fstate.f[23]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F24_F0 192 /* offsetof(struct task_struct, thread.fstate.f[24]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F25_F0 200 /* offsetof(struct task_struct, thread.fstate.f[25]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F26_F0 208 /* offsetof(struct task_struct, thread.fstate.f[26]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F27_F0 216 /* offsetof(struct task_struct, thread.fstate.f[27]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F28_F0 224 /* offsetof(struct task_struct, thread.fstate.f[28]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F29_F0 232 /* offsetof(struct task_struct, thread.fstate.f[29]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F30_F0 240 /* offsetof(struct task_struct, thread.fstate.f[30]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_F31_F0 248 /* offsetof(struct task_struct, thread.fstate.f[31]) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define TASK_THREAD_FCSR_F0 256 /* offsetof(struct task_struct, thread.fstate.fcsr) - offsetof(struct task_struct, thread.fstate.f[0]) */ +#define PT_SIZE_ON_STACK 288 /* ALIGN(sizeof(struct pt_regs), STACK_ALIGN) */ +#define KERNEL_MAP_VIRT_ADDR 8 /* offsetof(struct kernel_mapping, virt_addr) */ +#define SBI_HART_BOOT_TASK_PTR_OFFSET 0 /* offsetof(struct sbi_hart_boot_data, task_ptr) */ +#define SBI_HART_BOOT_STACK_PTR_OFFSET 8 /* offsetof(struct sbi_hart_boot_data, stack_ptr) */ +#define STACKFRAME_SIZE_ON_STACK 16 /* ALIGN(sizeof(struct stackframe), STACK_ALIGN) */ +#define STACKFRAME_FP 0 /* offsetof(struct stackframe, fp) */ +#define STACKFRAME_RA 8 /* offsetof(struct stackframe, ra) */ + +#endif |