]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/HiiDB: Minimize memory allocation times after ReadyToBoot
authorDandan Bi <dandan.bi@intel.com>
Thu, 25 Apr 2019 01:00:26 +0000 (09:00 +0800)
committerLiming Gao <liming.gao@intel.com>
Sun, 28 Apr 2019 01:32:42 +0000 (09:32 +0800)
commit60a86abf95aa0eb87fb6c76e3c913dc129aa4611
tree3d2fed7c95eec32df48217b124f519e031c177ed
parent5a4f3a3453e7689256058eada880791c3d8171f5
MdeModulePkg/HiiDB: Minimize memory allocation times after ReadyToBoot

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

Currently RTData are allocated at/after ReadyToBoot to store the
contents in HiiDatabase and the HII configurations for OS runtime
utilization.
Some platforms may meet S4 resume issue since the allocation after
ReadyToBoot cause memory map change.
Now this patch is to do some overallocation to minimize the number
of memory allocations after ReadyToBoot and also add warning
message when do allocation after ReadyToBoot.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Universal/HiiDatabaseDxe/Database.c