Module Name: src
Committed By: martin
Date: Mon Jan 24 10:05:22 UTC 2011
Modified Files:
src/sys/arch/sparc/include: cpu.h
Log Message:
Provide LWP_PC
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/sparc/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/sparc/include/cpu.h
diff -u src/sys/arch/sparc/include/cpu.h:1.90 src/sys/arch/sparc/include/cpu.h:1.91
--- src/sys/arch/sparc/include/cpu.h:1.90 Thu Jan 13 05:20:27 2011
+++ src/sys/arch/sparc/include/cpu.h Mon Jan 24 10:05:22 2011
@@ -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