From: Laszlo Ersek <lersek@redhat.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>, edk2-devel@lists.01.org
Cc: ruiyu.ni@intel.com, afish@apple.com, liming.gao@intel.com,
leif.lindholm@linaro.org, michael.d.kinney@intel.com,
star.zeng@intel.com
Subject: Re: [PATCH edk2-platforms v2 1/2] MdePkg: introduce DxeRuntimeDebugLibSerialPort
Date: Thu, 22 Feb 2018 19:15:49 +0100 [thread overview]
Message-ID: <75f34f90-8d86-a96e-9b72-6baa51768a68@redhat.com> (raw)
In-Reply-To: <20180222162822.22703-2-ard.biesheuvel@linaro.org>
On 02/22/18 17:28, Ard Biesheuvel wrote:
> Introduce a variant of BaseDebugLibSerialPort that behaves correctly with
> regards to the use of the serial port after ExitBootServices(). Also, it
> caches PCD values in the constructor so that no calls into PcdLib are
> made at runtime.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
> MdePkg/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c | 373 ++++++++++++++++++++
> MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf | 56 +++
> MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.uni | 21 ++
> 3 files changed, 450 insertions(+)
> +/**
> + If a runtime driver exits with an error, it must call this routine
> + to free the allocated resource before the exiting.
> +
> + @param[in] ImageHandle The firmware allocated handle for the EFI image.
> + @param[in] SystemTable A pointer to the EFI System Table.
> +
> + @retval EFI_SUCCESS The Runtime Driver Lib shutdown successfully.
> + @retval EFI_UNSUPPORTED Runtime Driver lib was not initialized.
> +**/
> +EFI_STATUS
> +EFIAPI
> +DxeRuntimeDebugLibSerialPortDestructor (
> + IN EFI_HANDLE ImageHandle,
> + IN EFI_SYSTEM_TABLE *SystemTable
> + )
> +{
> + return SystemTable->BootServices->CloseEvent (mEfiExitBootServicesEvent);
> +}
The leading comments still refer to "Runtime Driver Lib", but that's
harmless.
The UNI file (STR_ contents and @file comment) have not been updated
with the special purpose of this library, but I can live with that.
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Thanks!
LAszlo
next prev parent reply other threads:[~2018-02-22 18:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-22 16:28 [PATCH edk2-platforms v2 0/2] Create UART DebugLib implementation for runtime drivers Ard Biesheuvel
2018-02-22 16:28 ` [PATCH edk2-platforms v2 1/2] MdePkg: introduce DxeRuntimeDebugLibSerialPort Ard Biesheuvel
2018-02-22 17:45 ` Ard Biesheuvel
2018-02-22 17:46 ` Kinney, Michael D
2018-02-22 17:50 ` Ard Biesheuvel
2018-02-22 18:26 ` Laszlo Ersek
2018-02-22 18:15 ` Laszlo Ersek [this message]
2018-02-22 16:28 ` [PATCH edk2-platforms v2 2/2] ArmVirtPkg: switch to DXE runtime version of DebugLib where appropriate Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=75f34f90-8d86-a96e-9b72-6baa51768a68@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox