summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/pctr.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-03-29 18:09:32 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-03-29 18:09:32 +0000
commit400e99c46f5fa56531015ba74096c3df72851d35 (patch)
tree0faef85a6b863396e8ea71feee002ee3a2782234 /sys/arch/i386/include/pctr.h
parent3756224bec69e72815aea2adefb844c05c376b26 (diff)
It's been a quarter century: we can assume volatile is present with that name.
ok dlg@ mpi@ deraadt@
Diffstat (limited to 'sys/arch/i386/include/pctr.h')
-rw-r--r--sys/arch/i386/include/pctr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/i386/include/pctr.h b/sys/arch/i386/include/pctr.h
index 9e8b99fce5b..294507edaf1 100644
--- a/sys/arch/i386/include/pctr.h
+++ b/sys/arch/i386/include/pctr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pctr.h,v 1.16 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: pctr.h,v 1.17 2014/03/29 18:09:29 guenther Exp $ */
/*
* Pentium performance counter driver for OpenBSD.
@@ -58,7 +58,7 @@ struct pctrst {
#define rdtsc() \
({ \
pctrval v; \
- __asm __volatile ("rdtsc" : "=A" (v)); \
+ __asm volatile ("rdtsc" : "=A" (v)); \
v; \
})
@@ -66,7 +66,7 @@ struct pctrst {
#define rdpmc(ctr) \
({ \
pctrval v; \
- __asm __volatile ("rdpmc\n" \
+ __asm volatile ("rdpmc\n" \
"\tandl $0xff, %%edx" \
: "=A" (v) : "c" (ctr)); \
v; \
@@ -77,12 +77,12 @@ struct pctrst {
#define rdmsr(msr) \
({ \
pctrval v; \
- __asm __volatile ("rdmsr" : "=A" (v) : "c" (msr)); \
+ __asm volatile ("rdmsr" : "=A" (v) : "c" (msr)); \
v; \
})
#define wrmsr(msr, v) \
- __asm __volatile ("wrmsr" :: "A" ((u_int64_t) (v)), "c" (msr));
+ __asm volatile ("wrmsr" :: "A" ((u_int64_t) (v)), "c" (msr));
void pctrattach(int);
int pctropen(dev_t, int, int, struct proc *);