diff options
author | Mark Johnston <markj@FreeBSD.org> | 2018-06-09 18:31:19 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2018-06-09 18:31:19 +0000 |
commit | f090f67503fff00610df77a3b6520dcbad518a2a (patch) | |
tree | fa2f1727090ec9be88b987f16f27f13d2fafe0df /sys/amd64/include | |
parent | be13c0f967e22a64bf270418f65491fc47cec5c4 (diff) | |
download | src-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.h | 2 |
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)); } |