patch-1.3.2 linux/include/asm-i386/processor.h
Next file: linux/include/asm-i386/segment.h
Previous file: linux/include/asm-i386/checksum.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Jun 16 20:03:03 1995
- Orig file:
v1.3.1/linux/include/asm-i386/processor.h
- Orig date:
Mon May 29 11:13:40 1995
diff -u --recursive --new-file v1.3.1/linux/include/asm-i386/processor.h linux/include/asm-i386/processor.h
@@ -132,4 +132,12 @@
regs->esp = esp;
}
+/*
+ * Return saved PC of a blocked thread.
+ */
+extern inline unsigned long thread_saved_pc(struct thread_struct *t)
+{
+ return ((unsigned long *)t->esp)[3];
+}
+
#endif /* __ASM_I386_PROCESSOR_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this