aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2018-06-09 18:31:19 +0000
committerMark Johnston <markj@FreeBSD.org>2018-06-09 18:31:19 +0000
commitf090f67503fff00610df77a3b6520dcbad518a2a (patch)
treefa2f1727090ec9be88b987f16f27f13d2fafe0df /sys/amd64/include
parentbe13c0f967e22a64bf270418f65491fc47cec5c4 (diff)
downloadsrc-f090f67503fff00610df77a3b6520dcbad518a2a.tar.gz
src-f090f67503fff00610df77a3b6520dcbad518a2a.zip
Tell the compiler that rdtscp clobbers %ecx.
Notes
Notes: svn path=/head/; revision=334890
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/cpufunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 7123e7b8f58a..a0ea1b2f1701 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -391,7 +391,7 @@ rdtscp(void)
{
uint32_t low, high;
- __asm __volatile("rdtscp" : "=a" (low), "=d" (high));
+ __asm __volatile("rdtscp" : "=a" (low), "=d" (high) : : "ecx");
return (low | ((uint64_t)high << 32));
}