You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uefi/doc: improve documentation of exit_boot_services
TL;DR: Document why exit_boot_services needs to do more than just
call the UEFI function.
Exiting UEFI boot services requires a non-trivial sequence of steps,
including safe retrieval and finalization of the memory map. To clarify
why our exit_boot_services function is more than a thin wrapper, the
documentation has been updated accordingly.
This complexity is also reflected in the Linux source code [0].
In fact, the sequence of steps uefi-rs uses is inspired by the Linux
source code.
[0] https://github.com/torvalds/linux/blob/e544a0743/drivers/firmware/efi/libstub/efi-stub-helper.c#L375
0 commit comments