]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337331: efirt: Don't enter EFI context early, convert addrs to KVA
authorkevans <kevans@FreeBSD.org>
Sun, 12 Aug 2018 00:33:24 +0000 (00:33 +0000)
committerkevans <kevans@FreeBSD.org>
Sun, 12 Aug 2018 00:33:24 +0000 (00:33 +0000)
commit603bdee985ca145c979d2e2524c1f3bce8fcdce4
treef2cff60607f5a4424d33e29eea0c14c9ce73d3d4
parent557e456fc933c5d8e1842041fa6261250d20bef2
MFC r337331: efirt: Don't enter EFI context early, convert addrs to KVA

efi_enter here was needed because efi_runtime dereference causes a fault
outside of EFI context, due to runtime table living in runtime service
space. This may cause problems early in boot, though, so instead access it
by converting paddr to KVA for access.

While here, remove the other direct PHYS_TO_DMAP calls and the explicit DMAP
requirement from efidev.
sys/amd64/amd64/efirt_machdep.c
sys/dev/efidev/efirt.c
sys/sys/efi.h