]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PeilessStartupLib: move mPageTablePool to stack
authorMin M Xu <min.m.xu@intel.com>
Tue, 27 Sep 2022 07:07:53 +0000 (15:07 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 28 Sep 2022 00:31:16 +0000 (00:31 +0000)
commitf4d539007c706ad9a563f368720edf0920da925d
tree90fe2c43ad156097055017c8f3897f39ebc78bf7
parentb3dd9cb836e2aed68198aa79a1ca6afdb25adf80
OvmfPkg/PeilessStartupLib: move mPageTablePool to stack

PeilessStartupLib is running in SEC phase. In this phase global variable
is not allowed to be modified. This patch moves mPageTablePool to stack
and pass it as input parameter between functions.

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>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/PeilessStartupLib/X64/VirtualMemory.c