1
0
ответвлено от xt-sys/exectos

Store number of mappings when mapping virtual memory

Этот коммит содержится в:
2024-01-28 17:01:44 +01:00
родитель 2e12d30aa4
Коммит 670a812649
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@@ -178,6 +178,7 @@ BlInitializePageMap(OUT PXTBL_PAGE_MAPPING PageMap,
{
/* Initialize memory mappings */
RtlInitializeListHead(&PageMap->MemoryMap);
PageMap->MapSize = 0;
/* Set page map size/level and memory map address */
PageMap->PageMapLevel = PageMapLevel;
@@ -457,8 +458,9 @@ BlMapVirtualMemory(IN OUT PXTBL_PAGE_MAPPING PageMap,
ListEntry = ListEntry->Flink;
}
/* Insert new mapping to the list */
/* Insert new mapping to the list and increase page map size */
RtlInsertTailList(&PageMap->MemoryMap, &Mapping1->ListEntry);
PageMap->MapSize++;
/* Return success */
return STATUS_EFI_SUCCESS;