patch-2.3.4 linux/include/asm-i386/processor.h
Next file: linux/include/asm-i386/softirq.h
Previous file: linux/include/asm-arm/processor.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue May 25 14:56:06 1999
- Orig file:
v2.3.3/linux/include/asm-i386/processor.h
- Orig date:
Tue May 11 13:03:58 1999
diff -u --recursive --new-file v2.3.3/linux/include/asm-i386/processor.h linux/include/asm-i386/processor.h
@@ -11,6 +11,13 @@
#include <asm/math_emu.h>
#include <asm/segment.h>
#include <asm/page.h>
+#include <asm/types.h>
+
+/*
+ * Default implementation of macro that returns current
+ * instruction pointer ("program counter").
+ */
+#define current_text_addr() ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
/*
* CPU type and hardware bug flags. Kept separately for each CPU.
@@ -279,6 +286,7 @@
} while (0)
/* Forward declaration, a strange C thing */
+struct task_struct;
struct mm_struct;
/* Free all resources held by a thread. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)