|
@@ -1000,7 +1000,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
|
|
|
#define thread_saved_pc(t) (*(unsigned long *)((t)->thread.sp - 8))
|
|
|
|
|
|
#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1)
|
|
|
-#define KSTK_ESP(tsk) -1 /* sorry. doesn't work for syscall. */
|
|
|
+extern unsigned long KSTK_ESP(struct task_struct *task);
|
|
|
#endif /* CONFIG_X86_64 */
|
|
|
|
|
|
extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
|