On Thu, 28 Feb 2019 at 09:06, Heyi Guo <guoh...@huawei.com> wrote: > > Serial port output is useful when debugging UEFI runtime services in OS > runtime. > The patches are trying to provide a handy method to enable runtime serial port > debug for ArmVirtQemu. > > Cc: Jian J Wang <jian.j.w...@intel.com> > Cc: Hao Wu <hao.a...@intel.com> > Cc: Laszlo Ersek <ler...@redhat.com> > Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> > Cc: Julien Grall <julien.gr...@arm.com> > > Heyi Guo (3): > MdeModulePkg/StatusCode: Add PCD to enable runtime serial debug > ArmVirtPkg: add runtime instance of FdtPL011SerialPortLib > ArmVirtQemu: enable runtime debug by build flag >
Hello Heyi, We have had this discussion before, and IIRC, the proposed solution was to use status codes. I'm not sure how that is supposed to work though - hopefully Laszlo or one of the MdeModulePkg maintainers can elaborate. > ArmVirtPkg/ArmVirt.dsc.inc > | 6 ++ > ArmVirtPkg/ArmVirtQemu.dsc > | 13 +++ > ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc > | 5 + > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.c > | 29 ++++-- > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.h > | 27 +++++ > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf > | 3 + > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibCommon.c > | 27 +++++ > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.c > | 104 ++++++++++++++++++++ > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.inf > | 58 +++++++++++ > MdeModulePkg/MdeModulePkg.dec > | 6 ++ > MdeModulePkg/MdeModulePkg.uni > | 6 ++ > > MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.c > | 2 +- > > MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf > | 7 +- > 13 files changed, 279 insertions(+), 14 deletions(-) > create mode 100644 > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.h > create mode 100644 > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibCommon.c > create mode 100644 > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.c > create mode 100644 > ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLibRuntime.inf > > -- > 1.8.3.1 > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel