Module Name: src
Committed By: martin
Date: Mon Jan 24 10:04:28 UTC 2011
Modified Files:
src/sys/arch/sparc64/include: cpu.h
Log Message:
Provide LWP_PC
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/sparc64/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/sparc64/include/cpu.h
diff -u src/sys/arch/sparc64/include/cpu.h:1.93 src/sys/arch/sparc64/include/cpu.h:1.94
--- src/sys/arch/sparc64/include/cpu.h:1.93 Sun Dec 26 12:06:57 2010
+++ src/sys/arch/sparc64/include/cpu.h Mon Jan 24 10:04:28 2011
@@ -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