]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/TdxMailboxLib: Delete global variables
authorMin M Xu <min.m.xu@intel.com>
Tue, 20 Dec 2022 08:42:35 +0000 (16:42 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Dec 2022 07:06:17 +0000 (07:06 +0000)
commita00b71b009a60947fec8ace0ac56ab2ece887d97
treed0bed948c8f5f13f591838547fb267a770c73b59
parentb2d76fdd421b5081c2e03ae46079ccf8ecc045fe
OvmfPkg/TdxMailboxLib: Delete global variables

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4172

TdxMailboxLib once was designed to be used in DXE phase. But now it is
going to be used in SEC/PEI phase (in the following patches). Global
variables are not allowed. The library is refactored after those global
variables are deleted.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c