Module Name:    src
Committed By:   skrll
Date:           Mon Jan 24 07:44:16 UTC 2011

Modified Files:
        src/sys/arch/hp700/include: cpu.h

Log Message:
Provide LWP_PC


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/hp700/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/include/cpu.h
diff -u src/sys/arch/hp700/include/cpu.h:1.60 src/sys/arch/hp700/include/cpu.h:1.61
--- src/sys/arch/hp700/include/cpu.h:1.60	Sun Jan 23 21:53:40 2011
+++ src/sys/arch/hp700/include/cpu.h	Mon Jan 24 07:44:16 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.60 2011/01/23 21:53:40 skrll Exp $	*/
+/*	$NetBSD: cpu.h,v 1.61 2011/01/24 07:44:16 skrll Exp $	*/
 
 /*	$OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $	*/
 
@@ -233,6 +233,11 @@
 
 int	clock_intr(void *);
 
+/*
+ * LWP_PC: the program counter for the given lwp.
+ */
+#define	LWP_PC(l)		((l)->l_md.md_regs->tf_iioq_head)
+
 #define	cpu_signotify(l)	(setsoftast(l))
 #define	cpu_need_proftick(l)	((l)->l_pflag |= LP_OWEUPC, setsoftast(l))
 

Reply via email to