diff options
author | dm <dm@cvs.openbsd.org> | 1997-06-15 13:45:14 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1997-06-15 13:45:14 +0000 |
commit | fded5cc201bd391aabd8ba2243fd5dc72ce783f6 (patch) | |
tree | d98614ab94c8ab2594393961040112606c2c5c48 /sys/arch | |
parent | ae3deae4d9f20a7c50ef3d58cbb8c49b291f367e (diff) |
Address bug i386/224 from Jason Downs.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/pctr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/pctr.c b/sys/arch/i386/i386/pctr.c index 920dfe83abb..60a83f7005e 100644 --- a/sys/arch/i386/i386/pctr.c +++ b/sys/arch/i386/i386/pctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.c,v 1.8 1997/05/30 07:51:12 downsj Exp $ */ +/* $OpenBSD: pctr.c,v 1.9 1997/06/15 13:45:13 dm Exp $ */ /* * Pentium performance counter driver for OpenBSD. @@ -37,8 +37,11 @@ pctrattach (int num) { pctrval id; - if (num > 1) - panic ("no more than one pctr device"); + if (num > 1) { + printf ("Ignoring pctr device #%d\n", num); + printf ("(config file should read `pseudo-device pctr 1')\n"); + return; + } id = __cpuid (); usetsc = __hastsc (id); |