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)
Wed, Mar 27, 3:40 PM
Unknown Object (File)
Thu, Mar 21, 7:32 AM
Unknown Object (File)
Feb 7 2024, 1:17 AM
Unknown Object (File)
Jan 26 2024, 10:49 PM
Unknown Object (File)
Dec 13 2023, 8:15 AM
Unknown Object (File)
Nov 26 2023, 10:54 PM
Unknown Object (File)
Nov 22 2023, 3:44 PM
Unknown Object (File)
Nov 15 2023, 6:27 AM
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 24038
Build 22923: 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.