Page MenuHomeFreeBSD

Restore x18 in efi_arch_leave
ClosedPublic

Authored by andrew on May 1 2019, 4:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 29, 12:34 AM
Unknown Object (File)
Thu, Jun 20, 9:11 PM
Unknown Object (File)
Sat, Jun 15, 3:42 PM
Unknown Object (File)
Wed, Jun 5, 7:13 PM
Unknown Object (File)
Tue, Jun 4, 1:34 AM
Unknown Object (File)
May 28 2024, 9:04 PM
Unknown Object (File)
May 11 2024, 2:51 AM
Unknown Object (File)
May 5 2024, 10:54 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Move loading x18 before we use it.

Also :

Tested On: Ampere eMAG

This revision is now accepted and ready to land.May 1 2019, 4:31 PM

Should we add a Sponsored by: Ampere Computing (hardware)?

(And Andy's Sponsored-by, of course)

This revision was automatically updated to reflect the committed changes.