]> git.proxmox.com Git - mirror_edk2.git/commit
Nt32Pkg: Platform BDS should test the untested memory
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 6 Aug 2015 08:39:30 +0000 (08:39 +0000)
committerniruiyu <niruiyu@Edk2>
Thu, 6 Aug 2015 08:39:30 +0000 (08:39 +0000)
commit8f227c2fd97c8160c6e3f99c532d778942efaf62
tree5a14fc962d1e1934373c9107b658fa0a4093afad
parent72362a75a48b4acb555c2828ac9df134338f6daa
Nt32Pkg: Platform BDS should test the untested memory

NT32 has two ranges of memory, each 64MB. The first range is tested
but the second range is not tested. Platform BDS should have code
to use MemoryTest protocol to test the memory so that the second
range of untested memory can be added to the system memory pool.

Without the code SCT MemoryAllocation test case may fail. Because it
firstly use GetMemoryMap to find the biggest free memory descriptor
and then requests to allocate one page more than that biggest free memory.
It expects the allocation fails but actually the DXE core automatically
converts the second range of untested memory to tested and allocate the memory
from the second range.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18172 6f19259b-4bc3-4df7-8a09-765794883524
Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c
Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.h
Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf