]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/NvmExpressPei: Avoid updating the module-level variable
authorHao Wu <hao.a.wu@intel.com>
Mon, 27 Aug 2018 08:51:45 +0000 (16:51 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 22 Feb 2019 00:20:07 +0000 (08:20 +0800)
commit4104423ac067021ace59419f062dacce6e2cb525
tree9b2ffc9b4e9934e9f6d950c72b07469da928f18e
parent112dcbd9c26800c6820020dfa02341fbb75439a7
MdeModulePkg/NvmExpressPei: Avoid updating the module-level variable

This commit is out of the scope for BZ-1409. The commit will remove the
call of RegisterForShadow() at the entry point of the driver. By doing so,
the driver is now possible to be executed without being re-loaded into
permanent memory.

Thus, this commit will update the NvmExpressPei driver to avoid updating
the content of a global variable.

Cc: Jian J Wang <jian.j.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdeModulePkg/Bus/Pci/NvmExpressPei/DmaMem.c
MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.c
MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.h