diff options
| author | Jens Axboe <axboe@burns.home.kernel.dk> | 2002-02-11 12:15:42 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@burns.home.kernel.dk> | 2002-02-11 12:15:42 +0100 |
| commit | 66c92d0614790e8fbebdddac6df7818fde47ff68 (patch) | |
| tree | 700ef2cea9ef53eb72030c58d8b3d47b747d0b78 /include | |
| parent | 8baf628d83553c1d7b02a0c4031b952a02e90e90 (diff) | |
thread_saved_pc fix from akpm
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/processor.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index ec48a38e5e0f..256c8a0827dd 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h @@ -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]) |
