diff options
Diffstat (limited to 'arch/arc/include/asm/arcregs.h')
-rw-r--r-- | arch/arc/include/asm/arcregs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index 3fccb04e6d93..d76411882481 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h | |||
@@ -47,6 +47,17 @@ | |||
47 | #define AUX_ITRIGGER 0x40d | 47 | #define AUX_ITRIGGER 0x40d |
48 | #define AUX_IPULSE 0x415 | 48 | #define AUX_IPULSE 0x415 |
49 | 49 | ||
50 | /* | ||
51 | * Floating Pt Registers | ||
52 | * Status regs are read-only (build-time) so need not be saved/restored | ||
53 | */ | ||
54 | #define ARC_AUX_FP_STAT 0x300 | ||
55 | #define ARC_AUX_DPFP_1L 0x301 | ||
56 | #define ARC_AUX_DPFP_1H 0x302 | ||
57 | #define ARC_AUX_DPFP_2L 0x303 | ||
58 | #define ARC_AUX_DPFP_2H 0x304 | ||
59 | #define ARC_AUX_DPFP_STAT 0x305 | ||
60 | |||
50 | #ifndef __ASSEMBLY__ | 61 | #ifndef __ASSEMBLY__ |
51 | 62 | ||
52 | /* | 63 | /* |
@@ -110,6 +121,15 @@ | |||
110 | 121 | ||
111 | #endif | 122 | #endif |
112 | 123 | ||
124 | #ifdef CONFIG_ARC_FPU_SAVE_RESTORE | ||
125 | /* These DPFP regs need to be saved/restored across ctx-sw */ | ||
126 | struct arc_fpu { | ||
127 | struct { | ||
128 | unsigned int l, h; | ||
129 | } aux_dpfp[2]; | ||
130 | }; | ||
131 | #endif | ||
132 | |||
113 | #endif /* __ASEMBLY__ */ | 133 | #endif /* __ASEMBLY__ */ |
114 | 134 | ||
115 | #endif /* __KERNEL__ */ | 135 | #endif /* __KERNEL__ */ |