x86: Add rdtscp32() into cpufunc.h.
Suggested by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27986
This commit is contained in:
parent
826fc3cc3d
commit
45974de8fb
@ -412,6 +412,15 @@ rdtsc32(void)
|
||||
return (rv);
|
||||
}
|
||||
|
||||
static __inline uint32_t
|
||||
rdtscp32(void)
|
||||
{
|
||||
uint32_t rv;
|
||||
|
||||
__asm __volatile("rdtscp" : "=a" (rv) : : "ecx", "edx");
|
||||
return (rv);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
wbinvd(void)
|
||||
{
|
||||
|
@ -412,6 +412,15 @@ rdtsc32(void)
|
||||
return (rv);
|
||||
}
|
||||
|
||||
static __inline uint32_t
|
||||
rdtscp32(void)
|
||||
{
|
||||
uint32_t rv;
|
||||
|
||||
__asm __volatile("rdtscp" : "=a" (rv) : : "ecx", "edx");
|
||||
return (rv);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
wbinvd(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user