131a46e2cSBrooks Davis.PATH: ${LIBSYS_SRCTOP}/x86 231a46e2cSBrooks Davis 331a46e2cSBrooks DavisSRCS+= \ 431a46e2cSBrooks Davis __vdso_gettc.c \ 531a46e2cSBrooks Davis pkru.c \ 631a46e2cSBrooks Davis sched_getcpu_x86.c 731a46e2cSBrooks Davis 8*1995ea1eSBrooks Davis.if ${LIB} == "sys" 931a46e2cSBrooks DavisMAN+= \ 1031a46e2cSBrooks Davis pkru.3 11*1995ea1eSBrooks Davis.endif # ${LIB} == "sys" 1231a46e2cSBrooks Davis 1331a46e2cSBrooks Davis# Note: vdso support for hyperv only on amd64 1431a46e2cSBrooks Davis.if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no" 1531a46e2cSBrooks DavisCFLAGS+= -DWANT_HYPERV 1631a46e2cSBrooks Davis.endif 1731a46e2cSBrooks Davis# We can't use sanitizer instrumentation on ifuncs called during sanitizer 1831a46e2cSBrooks Davis# runtime startup. 1931a46e2cSBrooks Davis.if ${MK_ASAN} != "no" 2031a46e2cSBrooks DavisCFLAGS.__vdso_gettc.c+=-fno-sanitize=address 2131a46e2cSBrooks Davis.endif 2231a46e2cSBrooks Davis.if ${MK_UBSAN} != "no" 2331a46e2cSBrooks DavisCFLAGS.__vdso_gettc.c+=-fno-sanitize=undefined 2431a46e2cSBrooks Davis.endif 25