Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/include Oops; add PROC_PC().



details:   https://anonhg.NetBSD.org/src/rev/7217ef4cb344
branches:  trunk
changeset: 500506:7217ef4cb344
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Dec 13 00:46:31 2000 +0000

description:
Oops; add PROC_PC().

diffstat:

 sys/arch/alpha/include/cpu.h |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 85afb784de2b -r 7217ef4cb344 sys/arch/alpha/include/cpu.h
--- a/sys/arch/alpha/include/cpu.h      Wed Dec 13 00:38:20 2000 +0000
+++ b/sys/arch/alpha/include/cpu.h      Wed Dec 13 00:46:31 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.48 2000/11/22 08:39:53 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.49 2000/12/13 00:46:31 mycroft Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -6,7 +6,7 @@
  *
  * This code is derived from software contributed to The NetBSD Foundation
  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
- * NASA Ames Research Center.
+ * NASA Ames Research Center, and by Charles M. Hannum.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -195,6 +195,12 @@
 #define        CLKF_INTR(framep)       (curcpu()->ci_intrdepth)
 
 /*
+ * This is used during profiling to integrate system time.  It can safely
+ * assume that the process is resident.
+ */
+#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.
  */



Home | Main Index | Thread Index | Old Index