Toggle IBT off during EFI runtime services calls.
authorkettenis <kettenis@openbsd.org>
Sat, 8 Jul 2023 07:18:39 +0000 (07:18 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 8 Jul 2023 07:18:39 +0000 (07:18 +0000)
commit40ffff37b1f8c77043127d0fa399fa26a6011ac8
treeede3b91ce22bebe5cdc2ec0aafe635eaadc9a89e
parentaad5d5cdf7d86e0e26c204271d76cf7192e90f1e
Toggle IBT off during EFI runtime services calls.

While UEFI 2.10 has a way of indicating that runtime services use the
appropriate ENDBR64 instructions, firmware that's out int the wild doesn't
actually use that yet.  Once the landscape changes we may want to
reconsider toggling IBT off.

ok guenther@, kn@
sys/arch/amd64/amd64/efi_machdep.c