audk/UefiPayloadPkg
Benjamin Doron f26b70cb9f UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.

The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.

More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.

Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.

Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-07-27 20:54:35 +00:00
..
BlSupportDxe UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BlSupportSmm BlSupportSmm: fix definition of SetSmrr() 2022-03-07 22:48:49 +00:00
FvbRuntimeDxe UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
GraphicsOutputDxe UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Include UefiPayloadPkg: Add support for logging to CBMEM console 2022-07-27 20:54:35 +00:00
Library UefiPayloadPkg: Add support for logging to CBMEM console 2022-07-27 20:54:35 +00:00
PayloadLoaderPeim UefiPayloadPkg: Fix RelaAddress type always mismatch in if condition 2022-07-27 17:00:40 +00:00
PchSmiDispatchSmm UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmAccessDxe UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmControlRuntimeDxe UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiPayloadEntry UefiPayloadPkg: Always split page table entry to 4K if it covers stack. 2022-06-20 04:53:17 +00:00
BuildAndIntegrationInstructions.txt UefiPayloadPkg: Fix architecture in the build instruction 2022-03-29 05:18:43 +00:00
UefiPayloadPkg.ci.yaml UefiPayloadPkg/UefiPayloadPkg.ci.yaml: Remove duplicated entry 2022-03-29 04:22:16 +00:00
UefiPayloadPkg.dec UefiPayloadPkg: Add definition for PayloadCommandLine HOB 2022-05-06 04:49:22 +00:00
UefiPayloadPkg.dsc UefiPayloadPkg: Add support for logging to CBMEM console 2022-07-27 20:54:35 +00:00
UefiPayloadPkg.fdf UefiPayloadPkg: Add macro to support selection of CryptoDxe driver 2022-07-25 16:32:42 +00:00
UniversalPayloadBuild.py UefiPayloadPkg: Align Attribute value with UPL spec 2022-06-30 03:45:38 +00:00