Skip to content

Commit

Permalink
UefiPayloadPkg: Use DxeRuntimeDebugLibSerialPort in DXE_RUNTIME_DRIVER
Browse files Browse the repository at this point in the history
Prevent debugging on serial port (whether physical or cbmem console) at
runtime by using the DxeRuntimeDebugLibSerialPort library as DebugLib.
It will stop calling SerialPortWrite if EFI siwtches to runtime.
Solves the issue Xen backtrace on EFI reset system runtime service:
Dasharo/dasharo-issues#488 (comment)

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Oct 20, 2023
1 parent dfa3aa0 commit 5109be5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UefiPayloadPkg/UefiPayloadPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
SmbusLib|MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf

[LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
Expand Down

0 comments on commit 5109be5

Please sign in to comment.