]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: introduce DxeRuntimeDebugLibSerialPort
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 20 Feb 2018 10:53:10 +0000 (10:53 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 24 Feb 2018 13:58:53 +0000 (13:58 +0000)
commit7f029e1b31ee854f7963124080372d8355d745b8
tree48e842f94a871b38065ebe99dd49bcb8eaea6a4c
parent8bdb0221152c762b9209cadaf238a1498dc04695
MdePkg: introduce DxeRuntimeDebugLibSerialPort

Introduce a variant of BaseDebugLibSerialPort that behaves correctly with
regards to the use of the serial port after ExitBootServices(). At boot
time, all DEBUG() prints and ASSERT() invocations are executed normally.
At runtime, DEBUG() prints are dropped entirely, and ASSERT()s omit the
serial output as well, and only perform the configured post-ASSERT()
action, i.e., issue a CPU breakpoint or enter a deadloop.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
MdePkg/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c [new file with mode: 0644]
MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf [new file with mode: 0644]
MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.uni [new file with mode: 0644]