-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Pre-DXE Logs for Platforms Which Can't use Pre-DXE AdvancedLog…
…gerLib Instances (#440) ## Description Create a new guid and HOB entry definition for specifying a pre-DXE log buffer on platforms which can't use a pre-DXE AdvancedLoggerLib instance. After the advanced logger info buffer is created, the DxeCore AdvancedLoggerLib constructor will search for the guided HOB and, if found, write the contents of the buffer specified by the entry to the advanced logger buffer. - [x] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [ ] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... ## How This Was Tested Tested by creating the HOB and verifying that the DxeCore constructor located it. ## Integration Instructions N/A
- Loading branch information
1 parent
0f8c61f
commit 9b8db95
Showing
6 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @file | ||
This file defines GUIDs and data structure for producing HOB entry describing | ||
the location of pre-DXE logs. For platforms which use a Pre-DXE AdvancedLoggerLib | ||
implementation, this HOB is not necessary. | ||
Copyright (C) Microsoft Corporation. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#ifndef ADVANCED_LOGGER_PRE_DXE_LOGS_H_ | ||
#define ADVANCED_LOGGER_PRE_DXE_LOGS_H_ | ||
|
||
#pragma pack(1) | ||
// The region specified by this HOB entry should contain raw log output. | ||
// The Advanced Logger library will serialize the contents of the buffer | ||
// when adding it to the advanced logger output. | ||
typedef struct _ADVANCED_LOGGER_PRE_DXE_LOGS_HOB { | ||
UINT32 Signature; | ||
UINT64 BaseAddress; | ||
UINT64 LengthInBytes; | ||
} ADVANCED_LOGGER_PRE_DXE_LOGS_HOB; | ||
#pragma pack() | ||
|
||
#define ADVANCED_LOGGER_PRE_DXE_LOGS_GUID \ | ||
{ \ | ||
0x751fc006, 0x5804, 0x440d, { 0x8b, 0x15, 0x61, 0x8c, 0xf6, 0x56, 0xae, 0x76 } \ | ||
} | ||
|
||
extern EFI_GUID gAdvancedLoggerPreDxeLogsGuid; | ||
|
||
#define ADVANCED_LOGGER_PRE_DXE_LOGS_SIGNATURE SIGNATURE_32 ('A', 'L', 'P', 'D') | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters