summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-12-24 20:30:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-12-24 20:30:36 +0000
commitcdf6b9367dd4209ca60448d12a3522fd25f88179 (patch)
tree08d7a4fae7c7631ecd367e2004c022932d47e625 /sys/arch/sparc64/include
parent40edd12a0c0296733c9c321bece20217e47c0dc5 (diff)
Define PROC_PC. Then, since profiling information is being reported in
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/cpu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h
index f657a981b2a..66d66500796 100644
--- a/sys/arch/sparc64/include/cpu.h
+++ b/sys/arch/sparc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.36 2006/11/29 12:26:14 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.37 2006/12/24 20:30:35 miod Exp $ */
/* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */
/*
@@ -165,6 +165,11 @@ extern int want_resched; /* resched() was called */
#define need_resched(ci) (want_resched = 1, want_ast = 1)
/*
+ * This is used during profiling to integrate system time.
+ */
+#define PROC_PC(p) ((p)->p_md.md_tf->tf_pc)
+
+/*
* Give a profiling tick to the current process when the user profiling
* buffer pages are invalid. On the sparc, request an ast to send us
* through trap(), marking the proc as needing a profiling tick.