diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:30:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:30:36 +0000 |
commit | cdf6b9367dd4209ca60448d12a3522fd25f88179 (patch) | |
tree | 08d7a4fae7c7631ecd367e2004c022932d47e625 /sys/arch/alpha/include | |
parent | 40edd12a0c0296733c9c321bece20217e47c0dc5 (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/alpha/include')
-rw-r--r-- | sys/arch/alpha/include/cpu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h index c793d217035..ef4b6b09503 100644 --- a/sys/arch/alpha/include/cpu.h +++ b/sys/arch/alpha/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.25 2004/06/13 21:49:12 niklas Exp $ */ +/* $OpenBSD: cpu.h,v 1.26 2006/12/24 20:30:35 miod Exp $ */ /* $NetBSD: cpu.h,v 1.45 2000/08/21 02:03:12 thorpej Exp $ */ /*- @@ -266,6 +266,11 @@ struct clockframe { #define CLKF_INTR(framep) (curcpu()->ci_intrdepth) /* + * This is used during profiling to integrate system time. + */ +#define PROC_PC(p) ((p)->p_md.md_tf->tf_regs[FRAME_PC]) + +/* * Preempt the current process if in interrupt from user mode, * or after the current trap/syscall if in system mode. */ |