Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Provide LWP_PC
details: https://anonhg.NetBSD.org/src/rev/3f3a67527d03
branches: trunk
changeset: 761328:3f3a67527d03
user: martin <martin%NetBSD.org@localhost>
date: Mon Jan 24 10:04:28 2011 +0000
description:
Provide LWP_PC
diffstat:
sys/arch/sparc/include/cpu.h | 5 ++++-
sys/arch/sparc64/include/cpu.h | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r c05ba6c4f176 -r 3f3a67527d03 sys/arch/sparc/include/cpu.h
--- a/sys/arch/sparc/include/cpu.h Mon Jan 24 08:26:23 2011 +0000
+++ b/sys/arch/sparc/include/cpu.h Mon Jan 24 10:04:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.90 2011/01/13 05:20:27 mrg Exp $ */
+/* $NetBSD: cpu.h,v 1.91 2011/01/24 10:05:22 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -151,6 +151,9 @@
/* Number of CPUs in the system */
extern int sparc_ncpus;
+/* Provide %pc of a lwp */
+#define LWP_PC(l) ((l)->l_md.md_tf->tf_pc)
+
/*
* Interrupt handler chains. Interrupt handlers should return 0 for
* ``not me'' or 1 (``I took care of it''). intr_establish() inserts a
diff -r c05ba6c4f176 -r 3f3a67527d03 sys/arch/sparc64/include/cpu.h
--- a/sys/arch/sparc64/include/cpu.h Mon Jan 24 08:26:23 2011 +0000
+++ b/sys/arch/sparc64/include/cpu.h Mon Jan 24 10:04:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.93 2010/12/26 12:06:57 martin Exp $ */
+/* $NetBSD: cpu.h,v 1.94 2011/01/24 10:04:28 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -264,6 +264,9 @@
#endif
+/* Provide %pc of a lwp */
+#define LWP_PC(l) ((l)->l_md.md_tf->tf_pc)
+
/*
* Arguments to hardclock, softclock and gatherstats encapsulate the
* previous machine state in an opaque clockframe. The ipl is here
Home |
Main Index |
Thread Index |
Old Index