use the always serializing RDTSCP instruction in tsc and usertc if available
authorrobert <robert@openbsd.org>
Thu, 22 Sep 2022 04:57:07 +0000 (04:57 +0000)
committerrobert <robert@openbsd.org>
Thu, 22 Sep 2022 04:57:07 +0000 (04:57 +0000)
commitd55ef580b1748517027c3eabdb715316ca5b1442
tree439f12394ce8892c5eb4e73b012592f8a7da0512
parent46a03a1ef9f5cfd6cf3f55a92b8b55ec30bfcd07
use the always serializing RDTSCP instruction in tsc and usertc if available

tweaks from cheloha@; ok deraadt@, sthen@, cheloha@
lib/libc/arch/amd64/gen/usertc.c
sys/arch/amd64/amd64/tsc.c
sys/arch/amd64/include/cpufunc.h
sys/arch/amd64/include/timetc.h