Dear MdeModulePkg maintainer,
Please review attached patch file which try to correct the MemoryTypeInfo does 
not get updated within CoreConvertPages().

Steps to reproduce:
0. EfiLibGetSystemConfigurationTable (&gEfiMemoryTypeInformationGuid, 
&CurrentMemoryTypeInformation1)
1. AllocatePool (EfiBootServicesData, 0x80000, &BsData);
2. EfiLibGetSystemConfigurationTable (&gEfiMemoryTypeInformationGuid, 
&CurrentMemoryTypeInformation2)
3. FreePool (BsData)
4. EfiLibGetSystemConfigurationTable (&gEfiMemoryTypeInformationGuid, & 
CurrentMemoryTypeInformation3)

#1. CurrentMemoryTypeInformation2 get updated with EfiBootServicesData type 
grow 128 pages compare to CurrentMemoryTypeInformation1==> Correct!
#2. CurrentMemoryTypeInformation3 does not get updated with EfiBootServicesData 
type reduced 128 pages compare to CurrentMemoryTypeInformation2==> Problem!
----------------------------------------------------------------------------------------------------------------------
MdeModulePkg: Memory usage does not get updated when free the allocated one

Update gMemoryTypeInfo array when specific memory type been freed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Smith Cheng 
<smith_ch...@phoenix.com<mailto:smith_ch...@phoenix.com>>


Attachment: Page.c.patch
Description: Page.c.patch

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck&#174;
Code Sight&#153; - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to