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)
Fri, Jun 27, 10:54 AM
Unknown Object (File)
Wed, Jun 25, 5:22 AM
Unknown Object (File)
Fri, Jun 13, 11:56 AM
Unknown Object (File)
Thu, Jun 12, 11:54 AM
Unknown Object (File)
Mon, Jun 9, 5:09 AM
Unknown Object (File)
May 21 2025, 8:26 AM
Unknown Object (File)
May 20 2025, 6:43 AM
Unknown Object (File)
May 10 2025, 1:07 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24037
Build 22922: arc lint + arc unit

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.