diff options
Diffstat (limited to 'include/asm-xtensa/thread_info.h')
-rw-r--r-- | include/asm-xtensa/thread_info.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-xtensa/thread_info.h b/include/asm-xtensa/thread_info.h index 52c958285bcb..a2c640682ed9 100644 --- a/include/asm-xtensa/thread_info.h +++ b/include/asm-xtensa/thread_info.h | |||
@@ -27,6 +27,21 @@ | |||
27 | 27 | ||
28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
29 | 29 | ||
30 | #if XTENSA_HAVE_COPROCESSORS | ||
31 | |||
32 | typedef struct xtregs_coprocessor { | ||
33 | xtregs_cp0_t cp0; | ||
34 | xtregs_cp1_t cp1; | ||
35 | xtregs_cp2_t cp2; | ||
36 | xtregs_cp3_t cp3; | ||
37 | xtregs_cp4_t cp4; | ||
38 | xtregs_cp5_t cp5; | ||
39 | xtregs_cp6_t cp6; | ||
40 | xtregs_cp7_t cp7; | ||
41 | } xtregs_coprocessor_t; | ||
42 | |||
43 | #endif | ||
44 | |||
30 | struct thread_info { | 45 | struct thread_info { |
31 | struct task_struct *task; /* main task structure */ | 46 | struct task_struct *task; /* main task structure */ |
32 | struct exec_domain *exec_domain; /* execution domain */ | 47 | struct exec_domain *exec_domain; /* execution domain */ |
@@ -38,7 +53,13 @@ struct thread_info { | |||
38 | mm_segment_t addr_limit; /* thread address space */ | 53 | mm_segment_t addr_limit; /* thread address space */ |
39 | struct restart_block restart_block; | 54 | struct restart_block restart_block; |
40 | 55 | ||
56 | unsigned long cpenable; | ||
41 | 57 | ||
58 | /* Allocate storage for extra user states and coprocessor states. */ | ||
59 | #if XTENSA_HAVE_COPROCESSORS | ||
60 | xtregs_coprocessor_t xtregs_cp; | ||
61 | #endif | ||
62 | xtregs_user_t xtregs_user; | ||
42 | }; | 63 | }; |
43 | 64 | ||
44 | #else /* !__ASSEMBLY__ */ | 65 | #else /* !__ASSEMBLY__ */ |