Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/include Provide LWP_PC



details:   https://anonhg.NetBSD.org/src/rev/9af1ea98cd32
branches:  trunk
changeset: 761326:9af1ea98cd32
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 24 07:44:16 2011 +0000

description:
Provide LWP_PC

diffstat:

 sys/arch/hp700/include/cpu.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 93f13f236f36 -r 9af1ea98cd32 sys/arch/hp700/include/cpu.h
--- a/sys/arch/hp700/include/cpu.h      Mon Jan 24 07:22:57 2011 +0000
+++ b/sys/arch/hp700/include/cpu.h      Mon Jan 24 07:44:16 2011 +0000
@@ -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))
 



Home | Main Index | Thread Index | Old Index