diff options
-rw-r--r-- | arch/arc/include/asm/arcregs.h | 8 | ||||
-rw-r--r-- | arch/arc/include/asm/processor.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index d6d82577cabe..3ea5b437bfb9 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h | |||
@@ -189,14 +189,6 @@ | |||
189 | #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) | 189 | #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) |
190 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) | 190 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) |
191 | 191 | ||
192 | #ifdef CONFIG_ARC_FPU_SAVE_RESTORE | ||
193 | /* These DPFP regs need to be saved/restored across ctx-sw */ | ||
194 | struct arc_fpu { | ||
195 | struct { | ||
196 | unsigned int l, h; | ||
197 | } aux_dpfp[2]; | ||
198 | }; | ||
199 | #endif | ||
200 | 192 | ||
201 | /* | 193 | /* |
202 | *************************************************************** | 194 | *************************************************************** |
diff --git a/arch/arc/include/asm/processor.h b/arch/arc/include/asm/processor.h index 08fbe2e9d4cc..210fe97464c3 100644 --- a/arch/arc/include/asm/processor.h +++ b/arch/arc/include/asm/processor.h | |||
@@ -18,6 +18,15 @@ | |||
18 | 18 | ||
19 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
20 | 20 | ||
21 | #ifdef CONFIG_ARC_FPU_SAVE_RESTORE | ||
22 | /* These DPFP regs need to be saved/restored across ctx-sw */ | ||
23 | struct arc_fpu { | ||
24 | struct { | ||
25 | unsigned int l, h; | ||
26 | } aux_dpfp[2]; | ||
27 | }; | ||
28 | #endif | ||
29 | |||
21 | /* Arch specific stuff which needs to be saved per task. | 30 | /* Arch specific stuff which needs to be saved per task. |
22 | * However these items are not so important so as to earn a place in | 31 | * However these items are not so important so as to earn a place in |
23 | * struct thread_info | 32 | * struct thread_info |