Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 408e4631359d3e67633b36f6adf9a13a7cc573d3
https://github.com/tianocore/edk2/commit/408e4631359d3e67633b36f6adf9a13a7cc573d3
Author: Taylor Beebe <[email protected]>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M MdeModulePkg/Core/Dxe/Mem/Page.c
Log Message:
-----------
MdeModulePkg: Memory Bin Range Update Accounts for Guard Page
When finding a free page range for allocation, if the found range
starts below the tracked memory bin address range, the lowest
memory bin address is updated which will not include the guard page if
present. When CoreConvertPagesWithGuard() is called on the range
being allocated, the memory range is adjusted to include guard
pages which can push it out of the memory bin address range and
cause the memory type statistics to be unaltered.
This patch updates the lowest memory bin address range to account for
the guard page if NeedGuard is TRUE so the memory type statistics
are updated correctly.
Cc: Jian J Wang <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Dandan Bi <[email protected]>
Signed-off-by: Taylor Beebe <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits