Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include Define new-style PMC types for i586, i...
details: https://anonhg.NetBSD.org/src/rev/9f5706a03b51
branches: trunk
changeset: 535029:9f5706a03b51
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Aug 08 18:37:39 2002 +0000
description:
Define new-style PMC types for i586, i686, and K7 performance counters.
diffstat:
sys/arch/i386/include/pmc.h | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 7b7e9742a914 -r 9f5706a03b51 sys/arch/i386/include/pmc.h
--- a/sys/arch/i386/include/pmc.h Thu Aug 08 18:23:46 2002 +0000
+++ b/sys/arch/i386/include/pmc.h Thu Aug 08 18:37:39 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.h,v 1.3 2002/08/07 05:58:01 briggs Exp $ */
+/* $NetBSD: pmc.h,v 1.4 2002/08/08 18:37:39 thorpej Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -33,6 +33,21 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _I386_PMC_H_
+#define _I386_PMC_H_
+
+#define PMC_TYPE_I586 0x10000 /* i586-compatible */
+#define PMC_TYPE_I586_TSC 0x10001 /* cycle counter */
+#define PMC_TYPE_I586_PMCx 0x10002 /* performance counter */
+
+#define PMC_TYPE_I686 0x20000 /* i686-compatible */
+#define PMC_TYPE_I686_TSC 0x20001 /* cycle counter */
+#define PMC_TYPE_I686_PMCx 0x20002 /* performance counter */
+
+#define PMC_TYPE_K7 0x30000 /* K7-compatible */
+#define PMC_TYPE_K7_TSC 0x30001 /* cycle counter */
+#define PMC_TYPE_K7_PMCx 0x30002 /* performance counter */
+
#if defined(_KERNEL)
/*
* LEGACY PMC support
@@ -68,4 +83,6 @@
#define PMC_ENABLED(p) (0)
-#endif
+#endif /* _KERNEL */
+
+#endif /* _I386_PMC_H_ */
Home |
Main Index |
Thread Index |
Old Index