diff options
Diffstat (limited to 'arch/arm64/kernel/asm-offsets.c')
-rw-r--r-- | arch/arm64/kernel/asm-offsets.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c index dac70c160289..7a3f34b15fb0 100644 --- a/arch/arm64/kernel/asm-offsets.c +++ b/arch/arm64/kernel/asm-offsets.c | |||
@@ -38,11 +38,11 @@ int main(void) | |||
38 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); | 38 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); |
39 | DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); | 39 | DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); |
40 | DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); | 40 | DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); |
41 | #ifdef CONFIG_ARM64_SW_TTBR0_PAN | ||
42 | DEFINE(TI_TTBR0, offsetof(struct thread_info, ttbr0)); | ||
43 | #endif | ||
44 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); | 41 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); |
45 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); | 42 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); |
43 | #ifdef CONFIG_ARM64_SW_TTBR0_PAN | ||
44 | DEFINE(TSK_TI_TTBR0, offsetof(struct thread_info, ttbr0)); | ||
45 | #endif | ||
46 | BLANK(); | 46 | BLANK(); |
47 | DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context)); | 47 | DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context)); |
48 | BLANK(); | 48 | BLANK(); |
@@ -92,6 +92,7 @@ int main(void) | |||
92 | BLANK(); | 92 | BLANK(); |
93 | DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); | 93 | DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); |
94 | DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); | 94 | DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); |
95 | DEFINE(CLOCK_MONOTONIC_RAW, CLOCK_MONOTONIC_RAW); | ||
95 | DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); | 96 | DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); |
96 | DEFINE(CLOCK_REALTIME_COARSE, CLOCK_REALTIME_COARSE); | 97 | DEFINE(CLOCK_REALTIME_COARSE, CLOCK_REALTIME_COARSE); |
97 | DEFINE(CLOCK_MONOTONIC_COARSE,CLOCK_MONOTONIC_COARSE); | 98 | DEFINE(CLOCK_MONOTONIC_COARSE,CLOCK_MONOTONIC_COARSE); |
@@ -99,6 +100,8 @@ int main(void) | |||
99 | DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); | 100 | DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); |
100 | BLANK(); | 101 | BLANK(); |
101 | DEFINE(VDSO_CS_CYCLE_LAST, offsetof(struct vdso_data, cs_cycle_last)); | 102 | DEFINE(VDSO_CS_CYCLE_LAST, offsetof(struct vdso_data, cs_cycle_last)); |
103 | DEFINE(VDSO_RAW_TIME_SEC, offsetof(struct vdso_data, raw_time_sec)); | ||
104 | DEFINE(VDSO_RAW_TIME_NSEC, offsetof(struct vdso_data, raw_time_nsec)); | ||
102 | DEFINE(VDSO_XTIME_CLK_SEC, offsetof(struct vdso_data, xtime_clock_sec)); | 105 | DEFINE(VDSO_XTIME_CLK_SEC, offsetof(struct vdso_data, xtime_clock_sec)); |
103 | DEFINE(VDSO_XTIME_CLK_NSEC, offsetof(struct vdso_data, xtime_clock_nsec)); | 106 | DEFINE(VDSO_XTIME_CLK_NSEC, offsetof(struct vdso_data, xtime_clock_nsec)); |
104 | DEFINE(VDSO_XTIME_CRS_SEC, offsetof(struct vdso_data, xtime_coarse_sec)); | 107 | DEFINE(VDSO_XTIME_CRS_SEC, offsetof(struct vdso_data, xtime_coarse_sec)); |
@@ -106,7 +109,8 @@ int main(void) | |||
106 | DEFINE(VDSO_WTM_CLK_SEC, offsetof(struct vdso_data, wtm_clock_sec)); | 109 | DEFINE(VDSO_WTM_CLK_SEC, offsetof(struct vdso_data, wtm_clock_sec)); |
107 | DEFINE(VDSO_WTM_CLK_NSEC, offsetof(struct vdso_data, wtm_clock_nsec)); | 110 | DEFINE(VDSO_WTM_CLK_NSEC, offsetof(struct vdso_data, wtm_clock_nsec)); |
108 | DEFINE(VDSO_TB_SEQ_COUNT, offsetof(struct vdso_data, tb_seq_count)); | 111 | DEFINE(VDSO_TB_SEQ_COUNT, offsetof(struct vdso_data, tb_seq_count)); |
109 | DEFINE(VDSO_CS_MULT, offsetof(struct vdso_data, cs_mult)); | 112 | DEFINE(VDSO_CS_MONO_MULT, offsetof(struct vdso_data, cs_mono_mult)); |
113 | DEFINE(VDSO_CS_RAW_MULT, offsetof(struct vdso_data, cs_raw_mult)); | ||
110 | DEFINE(VDSO_CS_SHIFT, offsetof(struct vdso_data, cs_shift)); | 114 | DEFINE(VDSO_CS_SHIFT, offsetof(struct vdso_data, cs_shift)); |
111 | DEFINE(VDSO_TZ_MINWEST, offsetof(struct vdso_data, tz_minuteswest)); | 115 | DEFINE(VDSO_TZ_MINWEST, offsetof(struct vdso_data, tz_minuteswest)); |
112 | DEFINE(VDSO_TZ_DSTTIME, offsetof(struct vdso_data, tz_dsttime)); | 116 | DEFINE(VDSO_TZ_DSTTIME, offsetof(struct vdso_data, tz_dsttime)); |
@@ -120,6 +124,8 @@ int main(void) | |||
120 | DEFINE(TZ_MINWEST, offsetof(struct timezone, tz_minuteswest)); | 124 | DEFINE(TZ_MINWEST, offsetof(struct timezone, tz_minuteswest)); |
121 | DEFINE(TZ_DSTTIME, offsetof(struct timezone, tz_dsttime)); | 125 | DEFINE(TZ_DSTTIME, offsetof(struct timezone, tz_dsttime)); |
122 | BLANK(); | 126 | BLANK(); |
127 | DEFINE(CPU_BOOT_STACK, offsetof(struct secondary_data, stack)); | ||
128 | BLANK(); | ||
123 | #ifdef CONFIG_KVM_ARM_HOST | 129 | #ifdef CONFIG_KVM_ARM_HOST |
124 | DEFINE(VCPU_CONTEXT, offsetof(struct kvm_vcpu, arch.ctxt)); | 130 | DEFINE(VCPU_CONTEXT, offsetof(struct kvm_vcpu, arch.ctxt)); |
125 | DEFINE(CPU_GP_REGS, offsetof(struct kvm_cpu_context, gp_regs)); | 131 | DEFINE(CPU_GP_REGS, offsetof(struct kvm_cpu_context, gp_regs)); |