Skip to content

Commit

Permalink
Update reset notification list to be notified before NVMe (#80)
Browse files Browse the repository at this point in the history
## Description

Reset notification was handled by the NVMe driver before the AdvLogger
could write the log to disk.

- [No] Breaking change?
- Will this change break pre-existing builds or functionality without
action being taken?

## How This Was Tested

Tested on multiple systems.

## Integration Instructions

N/A
  • Loading branch information
mikeytdisco authored and kenlautner committed May 14, 2023
1 parent dac400f commit a68a857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions AdvLoggerPkg/AdvancedFileLogger/AdvancedFileLogger.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ OnResetNotificationProtocolInstalled (
// Get a pointer to the report status code protocol.
//
Status = gBS->LocateProtocol (
&gEfiResetNotificationProtocolGuid,
&gEdkiiPlatformSpecificResetFilterProtocolGuid,
NULL,
(VOID **)&ResetNotificationProtocol
);
Expand Down Expand Up @@ -408,7 +408,7 @@ ProcessResetEventRegistration (
// handler and we'll register when the protocol is installed.
//
Status = gBS->LocateProtocol (
&gEfiResetNotificationProtocolGuid,
&gEdkiiPlatformSpecificResetFilterProtocolGuid,
NULL,
(VOID **)&ResetNotificationProtocol
);
Expand Down Expand Up @@ -436,7 +436,7 @@ ProcessResetEventRegistration (
DEBUG ((DEBUG_ERROR, "%a: failed to create Reset Protocol protocol callback event (%r)\n", __FUNCTION__, Status));
} else {
Status = gBS->RegisterProtocolNotify (
&gEfiResetNotificationProtocolGuid,
&gEdkiiPlatformSpecificResetFilterProtocolGuid,
ResetNotificationEvent,
&ResetNotificationRegistration
);
Expand Down
2 changes: 1 addition & 1 deletion AdvLoggerPkg/AdvancedFileLogger/AdvancedFileLogger.inf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
gMuEventPreExitBootServicesGuid

[Protocols]
gEfiResetNotificationProtocolGuid ## CONSUMES
gEdkiiPlatformSpecificResetFilterProtocolGuid ## CONSUMES
gEfiSimpleFileSystemProtocolGuid ## CONSUMES

[Pcd]
Expand Down

0 comments on commit a68a857

Please sign in to comment.