]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use ifunc to resolve context switching mode on amd64.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 17 Sep 2018 15:52:19 +0000 (15:52 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 17 Sep 2018 15:52:19 +0000 (15:52 +0000)
commit3c022be2ca64308c1eba8e686afccfbd06bfe1b5
tree2e0ea50225ca200b2348463513a3bae4f45cfa9e
parentd6943c58045fa20ef31224c8c2b64ab7cf2865d6
Use ifunc to resolve context switching mode on amd64.

Patch removes all checks for pti/pcid/invpcid from the context switch
path. I verified this by looking at the generated code, compiling with
the in-tree clang.  The invpcid_works1 trick required inline attribute
for pmap_activate_sw_pcid_pti() to work.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
Differential revision: https://reviews.freebsd.org/D17181
sys/amd64/amd64/pmap.c