diff options
author | dm <dm@cvs.openbsd.org> | 1997-08-16 18:26:31 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1997-08-16 18:26:31 +0000 |
commit | 35b34ef8eba1f3d1811b1ba77860118033238a99 (patch) | |
tree | 01f4b86b36a02bcb4b5726385929bec50724873c /sys/arch/i386 | |
parent | a0def382b3ed9d07eeac89ce637ae40333ed75be (diff) |
Bug.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/include/pctr.h | 6 |
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; \ |