|
@@ -114,8 +114,14 @@ static inline struct thread_info *current_thread_info(void)
|
|
|
((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
|
|
|
#define thread_saved_sp(tsk) \
|
|
|
((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
|
|
|
+
|
|
|
+#ifndef CONFIG_THUMB2_KERNEL
|
|
|
#define thread_saved_fp(tsk) \
|
|
|
((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
|
|
|
+#else
|
|
|
+#define thread_saved_fp(tsk) \
|
|
|
+ ((unsigned long)(task_thread_info(tsk)->cpu_context.r7))
|
|
|
+#endif
|
|
|
|
|
|
extern void crunch_task_disable(struct thread_info *);
|
|
|
extern void crunch_task_copy(struct thread_info *, void *);
|