summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordm <dm@openbsd.org>1997-08-16 18:26:30 +0000
committerdm <dm@openbsd.org>1997-08-16 18:26:30 +0000
commit8355674cb06a3bb314ef3185fe57978013d3c700 (patch)
tree5d304fb00c25f5946abbd3050a82a3000f516cf1
parentAllow DEFBADDYNAMICPORTS_TCP and DEFBADDYNAMICPORTS_UDP to be (diff)
downloadwireguard-openbsd-8355674cb06a3bb314ef3185fe57978013d3c700.tar.xz
wireguard-openbsd-8355674cb06a3bb314ef3185fe57978013d3c700.zip
Bug.
-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; \