|
@@ -26,10 +26,19 @@ extern void fpu_save_restore(struct task_struct *p, struct task_struct *n);
|
|
|
|
|
|
#endif /* !CONFIG_ARC_FPU_SAVE_RESTORE */
|
|
#endif /* !CONFIG_ARC_FPU_SAVE_RESTORE */
|
|
|
|
|
|
|
|
+#ifdef CONFIG_ARC_PLAT_EZNPS
|
|
|
|
+extern void dp_save_restore(struct task_struct *p, struct task_struct *n);
|
|
|
|
+#define ARC_EZNPS_DP_PREV(p, n) dp_save_restore(p, n)
|
|
|
|
+#else
|
|
|
|
+#define ARC_EZNPS_DP_PREV(p, n)
|
|
|
|
+
|
|
|
|
+#endif /* !CONFIG_ARC_PLAT_EZNPS */
|
|
|
|
+
|
|
struct task_struct *__switch_to(struct task_struct *p, struct task_struct *n);
|
|
struct task_struct *__switch_to(struct task_struct *p, struct task_struct *n);
|
|
|
|
|
|
#define switch_to(prev, next, last) \
|
|
#define switch_to(prev, next, last) \
|
|
do { \
|
|
do { \
|
|
|
|
+ ARC_EZNPS_DP_PREV(prev, next); \
|
|
ARC_FPU_PREV(prev, next); \
|
|
ARC_FPU_PREV(prev, next); \
|
|
last = __switch_to(prev, next);\
|
|
last = __switch_to(prev, next);\
|
|
ARC_FPU_NEXT(next); \
|
|
ARC_FPU_NEXT(next); \
|