HomeFreeBSD

MFC r346996:

Description

MFC r346996:

Restore x18 in efi_arch_leave.

Some UEFI implementations trash this register and, as we use it as a
platform register, the kernel doesn't save it before calling into the UEFI
runtime services. As we have a copy in tpidr_el1 restore from there when
exiting the EFI environment.

PR: 237234, 237055
Reviewed by: manu
Tested On: Ampere eMAG
Sponsored by: DARPA, AFRL
Sponsored by: Ampere Computing (hardware)
Differential Revision: https://reviews.freebsd.org/D20127

Details

Provenance
andrewAuthored on
Reviewer
manu
Differential Revision
D20127: Restore x18 in efi_arch_leave
Parents
rS352394: MFC r339738, r339744, r339770, r339773, r339864-r339866, r339907-r339908…
Branches
Unknown
Tags
Unknown