| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | 2 | // Copyright (C) 2005-2017 Andes Technology Corporation |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | #ifndef __ASM_NDS32_PROCESSOR_H |
|---|
| 5 | 5 | #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;}) |
|---|
| 12 | 6 | |
|---|
| 13 | 7 | #ifdef __KERNEL__ |
|---|
| 14 | 8 | |
|---|
| .. | .. |
|---|
| 41 | 35 | unsigned long address; |
|---|
| 42 | 36 | unsigned long trap_no; |
|---|
| 43 | 37 | unsigned long error_code; |
|---|
| 38 | + |
|---|
| 39 | + struct fpu_struct fpu; |
|---|
| 44 | 40 | }; |
|---|
| 45 | 41 | |
|---|
| 46 | 42 | #define INIT_THREAD { } |
|---|
| .. | .. |
|---|
| 78 | 74 | |
|---|
| 79 | 75 | /* Free all resources held by a thread. */ |
|---|
| 80 | 76 | #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 |
|---|
| 81 | 82 | |
|---|
| 82 | 83 | /* Prepare to copy thread state - unlazy all lazy status */ |
|---|
| 83 | 84 | #define prepare_to_copy(tsk) do { } while (0) |
|---|