Open apop5 opened 3 months ago
⚠ WARNING: Cannot add reviewers: A user specified as a reviewer for this PR is not a collaborator of the edk2 repository. Please add them as a collaborator to the repository and re-request the review.
Users requested: ajfish, leiflindholm, mdkinney, SaloniKasbekar, Zclarkwilliams
⚠ WARNING: Cannot add reviewers: A user specified as a reviewer for this PR is not a collaborator of the edk2 repository. Please add them as a collaborator to the repository and re-request the review.
Users requested: ajfish, leiflindholm, mdkinney, SaloniKasbekar, Zclarkwilliams
@mdkinney
⚠ WARNING: Cannot add reviewers: A user specified as a reviewer for this PR is not a collaborator of the edk2 repository. Please add them as a collaborator to the repository and re-request the review.
Users requested: ajfish, leiflindholm, mdkinney, SaloniKasbekar, Zclarkwilliams
Description
SnpDxe registers for an ExitBootServices callback and runs the PXE_OPCODE_SHUTDOWN and PXE_OPCODE_STOP commands for any network controllers that the driver is attached to.
Register the SnpDxe callback for gEfiEventBeforeExitBootServicesGuid instead of gEfiEventExitBootServicesGuid to ensure the correct ordering:
Also, close the event to prevent rerunning the shutdown if multiple ExitBootServices events need to be called by the OS.
How This Was Tested
Verified PXE boot was able to complete.
Integration Instructions
N/A