Fix a bug in BlAddVirtualMemoryMapping() routine causing PF (Page Fault) on systems with more than 3GB of RAM
所有检测均成功
ci/woodpecker/push/build Pipeline was successful
所有检测均成功
ci/woodpecker/push/build Pipeline was successful
这个提交包含在:
父节点
8beb7c13ec
当前提交
2b679c11d4
@ -145,13 +145,9 @@ BlAddVirtualMemoryMapping(IN PLIST_ENTRY MemoryMappings,
|
||||
if((Mapping2->PhysicalAddress >= Mapping1->PhysicalAddress && PhysicalAddress2End <= PhysicalAddressEnd) ||
|
||||
(Mapping2->NumberOfPages == 0))
|
||||
{
|
||||
/* Make sure it's memory type is LoaderFree */
|
||||
if(Mapping2->MemoryType != LoaderFree)
|
||||
/* If it is of LoaderFree type, then we can skip it */
|
||||
if(Mapping2->MemoryType == LoaderFree)
|
||||
{
|
||||
/* LoaderFree memory type is strictly expected */
|
||||
return STATUS_EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* Store address of the next mapping */
|
||||
MappingListEntry = ListEntry->Flink;
|
||||
|
||||
@ -159,8 +155,11 @@ BlAddVirtualMemoryMapping(IN PLIST_ENTRY MemoryMappings,
|
||||
RtlRemoveEntryList(&Mapping2->ListEntry);
|
||||
BlEfiMemoryFreePool(Mapping2);
|
||||
ListEntry = MappingListEntry;
|
||||
|
||||
/* Go to the next mapping */
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/* Determine phsical address order */
|
||||
if(Mapping2->PhysicalAddress > Mapping1->PhysicalAddress)
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户