]> git.neil.brown.name Git - history.git/commitdiff
[ARM] Cast thread_saved_{pc,fp} to unsigned long.
authorRussell King <rmk@flint.arm.linux.org.uk>
Wed, 5 Jun 2002 01:25:51 +0000 (02:25 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Wed, 5 Jun 2002 01:25:51 +0000 (02:25 +0100)
The kernel expects these to return values in unsigned long types.

include/asm-arm/thread_info.h

index ebed4a5705992e25c2cdab1f0500c67035aac901..1991b807b3ce80004d334216d74f9d249b8ba6f8 100644 (file)
@@ -86,8 +86,10 @@ extern void free_thread_info(struct thread_info *);
 #define get_thread_info(ti)    get_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_fp(tsk)   ((tsk)->thread_info->cpu_context.fp)
+#define thread_saved_pc(tsk)   \
+       ((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__ */