asm-offsets.c (1136fa0c07de570dc17858745af8be169d1440ba) asm-offsets.c (63b13e64a829e7b12fba81fccbea0d5448fc0c24)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2017 SiFive
5 */
6
7#define GENERATING_ASM_OFFSETS
8
9#include <linux/kbuild.h>
10#include <linux/mm.h>
11#include <linux/sched.h>
12#include <asm/kvm_host.h>
13#include <asm/thread_info.h>
14#include <asm/ptrace.h>
15#include <asm/cpu_ops_sbi.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2017 SiFive
5 */
6
7#define GENERATING_ASM_OFFSETS
8
9#include <linux/kbuild.h>
10#include <linux/mm.h>
11#include <linux/sched.h>
12#include <asm/kvm_host.h>
13#include <asm/thread_info.h>
14#include <asm/ptrace.h>
15#include <asm/cpu_ops_sbi.h>
16#include <asm/suspend.h>
16
17void asm_offsets(void);
18
19void asm_offsets(void)
20{
21 OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
22 OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
23 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);

--- 84 unchanged lines hidden (view full) ---

108 OFFSET(PT_T5, pt_regs, t5);
109 OFFSET(PT_T6, pt_regs, t6);
110 OFFSET(PT_GP, pt_regs, gp);
111 OFFSET(PT_ORIG_A0, pt_regs, orig_a0);
112 OFFSET(PT_STATUS, pt_regs, status);
113 OFFSET(PT_BADADDR, pt_regs, badaddr);
114 OFFSET(PT_CAUSE, pt_regs, cause);
115
17
18void asm_offsets(void);
19
20void asm_offsets(void)
21{
22 OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
23 OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
24 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);

--- 84 unchanged lines hidden (view full) ---

109 OFFSET(PT_T5, pt_regs, t5);
110 OFFSET(PT_T6, pt_regs, t6);
111 OFFSET(PT_GP, pt_regs, gp);
112 OFFSET(PT_ORIG_A0, pt_regs, orig_a0);
113 OFFSET(PT_STATUS, pt_regs, status);
114 OFFSET(PT_BADADDR, pt_regs, badaddr);
115 OFFSET(PT_CAUSE, pt_regs, cause);
116
117 OFFSET(SUSPEND_CONTEXT_REGS, suspend_context, regs);
118
116 OFFSET(KVM_ARCH_GUEST_ZERO, kvm_vcpu_arch, guest_context.zero);
117 OFFSET(KVM_ARCH_GUEST_RA, kvm_vcpu_arch, guest_context.ra);
118 OFFSET(KVM_ARCH_GUEST_SP, kvm_vcpu_arch, guest_context.sp);
119 OFFSET(KVM_ARCH_GUEST_GP, kvm_vcpu_arch, guest_context.gp);
120 OFFSET(KVM_ARCH_GUEST_TP, kvm_vcpu_arch, guest_context.tp);
121 OFFSET(KVM_ARCH_GUEST_T0, kvm_vcpu_arch, guest_context.t0);
122 OFFSET(KVM_ARCH_GUEST_T1, kvm_vcpu_arch, guest_context.t1);
123 OFFSET(KVM_ARCH_GUEST_T2, kvm_vcpu_arch, guest_context.t2);

--- 351 unchanged lines hidden ---
119 OFFSET(KVM_ARCH_GUEST_ZERO, kvm_vcpu_arch, guest_context.zero);
120 OFFSET(KVM_ARCH_GUEST_RA, kvm_vcpu_arch, guest_context.ra);
121 OFFSET(KVM_ARCH_GUEST_SP, kvm_vcpu_arch, guest_context.sp);
122 OFFSET(KVM_ARCH_GUEST_GP, kvm_vcpu_arch, guest_context.gp);
123 OFFSET(KVM_ARCH_GUEST_TP, kvm_vcpu_arch, guest_context.tp);
124 OFFSET(KVM_ARCH_GUEST_T0, kvm_vcpu_arch, guest_context.t0);
125 OFFSET(KVM_ARCH_GUEST_T1, kvm_vcpu_arch, guest_context.t1);
126 OFFSET(KVM_ARCH_GUEST_T2, kvm_vcpu_arch, guest_context.t2);

--- 351 unchanged lines hidden ---