Commit 1650fa58 authored by Russell King's avatar Russell King

[ARM] Cast thread_saved_{pc,fp} to unsigned long.

The kernel expects these to return values in unsigned long types.
parent 41a74af7
...@@ -86,8 +86,10 @@ extern void free_thread_info(struct thread_info *); ...@@ -86,8 +86,10 @@ extern void free_thread_info(struct thread_info *);
#define get_thread_info(ti) get_task_struct((ti)->task) #define get_thread_info(ti) get_task_struct((ti)->task)
#define put_thread_info(ti) put_task_struct((ti)->task) #define put_thread_info(ti) put_task_struct((ti)->task)
#define thread_saved_pc(tsk) (pc_pointer((tsk)->thread_info->cpu_context.pc)) #define thread_saved_pc(tsk) \
#define thread_saved_fp(tsk) ((tsk)->thread_info->cpu_context.fp) ((unsigned long)(pc_pointer((tsk)->thread_info->cpu_context.pc)))
#define thread_saved_fp(tsk) \
((unsigned long)((tsk)->thread_info->cpu_context.fp))
#else /* !__ASSEMBLY__ */ #else /* !__ASSEMBLY__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment