]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/BaseCpuLibNull: Add Null version of CpuLib for host testing
authorMichael D Kinney <michael.d.kinney@intel.com>
Fri, 5 Jun 2020 18:01:22 +0000 (11:01 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Jul 2020 05:25:21 +0000 (05:25 +0000)
commit9af8a299cec10656b757ae30a71c1310260d3c31
tree871f76e7221bf654c575c9f1c4f97ff18be7af4d
parent5b86bbf891677882a9d097f87cd0128562c12c43
MdePkg/BaseCpuLibNull: Add Null version of CpuLib for host testing

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2798

The services in CpuLib usually generate exceptions in a unit test
host application.  Provide a Null instance that can be safely used.

This Null instance can also be used as a template for implementing
new instances of CpuLib.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c [new file with mode: 0644]
MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf [new file with mode: 0644]
MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.uni [new file with mode: 0644]
MdePkg/MdePkg.dsc