Cc: Star Zeng <[email protected]> Cc: Jiewen Yao <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <[email protected]> --- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c index ab1e914..fbce93c 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -67,6 +67,7 @@ Split2MPageTo4K ( PAGE_TABLE_4K_ENTRY *PageTableEntry; PageTableEntry = AllocatePages (1); + ASSERT (PageTableEntry != NULL); // // Fill in 2M page entry. // @@ -111,6 +112,7 @@ Split1GPageTo2M ( PAGE_TABLE_ENTRY *PageDirectoryEntry; PageDirectoryEntry = AllocatePages (1); + ASSERT (PageDirectoryEntry != NULL); // // Fill in 1G page entry. // -- 1.9.5.msysgit.0 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

