]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm64/kernel/asm-offsets.c
arm64: Introduce uaccess_{disable,enable} functionality based on TTBR0_EL1
[karo-tx-linux.git] / arch / arm64 / kernel / asm-offsets.c
index c2dc9fa4f09bef502f2582411e96cd99b5f48485..bc049afc73a782c73f97fe48a42dbcb88ccd9126 100644 (file)
@@ -39,6 +39,9 @@ int main(void)
   DEFINE(TSK_TI_FLAGS,         offsetof(struct task_struct, thread_info.flags));
   DEFINE(TSK_TI_PREEMPT,       offsetof(struct task_struct, thread_info.preempt_count));
   DEFINE(TSK_TI_ADDR_LIMIT,    offsetof(struct task_struct, thread_info.addr_limit));
+#ifdef CONFIG_ARM64_SW_TTBR0_PAN
+  DEFINE(TSK_TI_TTBR0,         offsetof(struct task_struct, thread_info.ttbr0));
+#endif
   DEFINE(TSK_STACK,            offsetof(struct task_struct, stack));
   BLANK();
   DEFINE(THREAD_CPU_CONTEXT,   offsetof(struct task_struct, thread.cpu_context));