hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/nds32/include/asm/processor.h
....@@ -1,14 +1,8 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 // Copyright (C) 2005-2017 Andes Technology Corporation
33
44 #ifndef __ASM_NDS32_PROCESSOR_H
55 #define __ASM_NDS32_PROCESSOR_H
6
-
7
-/*
8
- * Default implementation of macro that returns current
9
- * instruction pointer ("program counter").
10
- */
11
-#define current_text_addr() ({ __label__ _l; _l: &&_l;})
126
137 #ifdef __KERNEL__
148
....@@ -41,6 +35,8 @@
4135 unsigned long address;
4236 unsigned long trap_no;
4337 unsigned long error_code;
38
+
39
+ struct fpu_struct fpu;
4440 };
4541
4642 #define INIT_THREAD { }
....@@ -78,6 +74,11 @@
7874
7975 /* Free all resources held by a thread. */
8076 #define release_thread(thread) do { } while(0)
77
+#if IS_ENABLED(CONFIG_FPU)
78
+#if !IS_ENABLED(CONFIG_UNLAZU_FPU)
79
+extern struct task_struct *last_task_used_math;
80
+#endif
81
+#endif
8182
8283 /* Prepare to copy thread state - unlazy all lazy status */
8384 #define prepare_to_copy(tsk) do { } while (0)