]> git.neil.brown.name Git - history.git/commitdiff
thread_saved_pc fix from akpm
authorJens Axboe <axboe@burns.home.kernel.dk>
Mon, 11 Feb 2002 11:15:42 +0000 (12:15 +0100)
committerJens Axboe <axboe@burns.home.kernel.dk>
Mon, 11 Feb 2002 11:15:42 +0000 (12:15 +0100)
arch/i386/kernel/process.c
include/asm-i386/processor.h

index 99710bb8bbcc2005ed9b72172d325acd6e7b306a..a0776f366324fbb22bcc95fbbc0d8e2fa5a85fa6 100644 (file)
@@ -54,6 +54,14 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
 
 int hlt_counter;
 
+/*
+ * Return saved PC of a blocked thread.
+ */
+unsigned long thread_saved_pc(struct task_struct *tsk)
+{
+       return ((unsigned long *)tsk->thread.esp)[3];
+}
+
 /*
  * Powermanagement idle function, if any..
  */
index ec48a38e5e0f9663ceebd9e8a451b8fc6cc6c440..256c8a0827ddfa5129a8a76deda86d94fad1311a 100644 (file)
@@ -436,13 +436,7 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
 extern void copy_segments(struct task_struct *p, struct mm_struct * mm);
 extern void release_segments(struct mm_struct * mm);
 
-/*
- * Return saved PC of a blocked thread.
- */
-static inline unsigned long thread_saved_pc(struct task_struct *tsk)
-{
-       return ((unsigned long *)tsk->thread->esp)[3];
-}
+extern unsigned long thread_saved_pc(struct task_struct *tsk);
 
 unsigned long get_wchan(struct task_struct *p);
 #define KSTK_EIP(tsk)  (((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1019])