summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2002-06-05 02:25:51 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2002-06-05 02:25:51 +0100
commit1650fa58380c8faa9dd09357833e66295f2cfc81 (patch)
tree63ddc6df8d6a2471486aae2bcad30a5c7fce34ad /include
parent41a74af779416770093e10510122b489aafa30bd (diff)
[ARM] Cast thread_saved_{pc,fp} to unsigned long.
The kernel expects these to return values in unsigned long types.
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/thread_info.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-arm/thread_info.h b/include/asm-arm/thread_info.h
index ebed4a570599..1991b807b3ce 100644
--- a/include/asm-arm/thread_info.h
+++ b/include/asm-arm/thread_info.h
@@ -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__ */