summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1997-08-16 18:26:31 +0000
committerdm <dm@cvs.openbsd.org>1997-08-16 18:26:31 +0000
commit35b34ef8eba1f3d1811b1ba77860118033238a99 (patch)
tree01f4b86b36a02bcb4b5726385929bec50724873c /sys/arch/i386
parenta0def382b3ed9d07eeac89ce637ae40333ed75be (diff)
Bug.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/include/pctr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/include/pctr.h b/sys/arch/i386/include/pctr.h
index 79f50cd017a..df42194a216 100644
--- a/sys/arch/i386/include/pctr.h
+++ b/sys/arch/i386/include/pctr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pctr.h,v 1.5 1996/10/20 15:27:48 dm Exp $ */
+/* $OpenBSD: pctr.h,v 1.6 1997/08/16 18:26:30 dm Exp $ */
/*
* Pentium performance counter driver for OpenBSD.
@@ -74,7 +74,11 @@ struct pctrst {
"\tje 1f\n" \
"\tmovl $1,%%eax\n" \
"\tcpuid\n" \
+ "\tjmp 2f\n" \
"1:\t" \
+ "\txorl %%eax,%%eax\n" \
+ "\txorl %%edx,%%edx\n" \
+ "2:\t" \
: "=A" (id) : "i" (PSL_ID) \
: "edx", "ecx", "ebx"); \
id; \