Re: [edk2] How to add memory range to gMemoryMap

2014-06-06 Thread Sergey Isakov
Hi, The memory map depends on your platform. See, for example DuetPkg #define EFI_MEMORY_BELOW_1MB_START 0x86000 It is defined in DuetPkg/DxeIpl/HobGeneration.h Wishes Sergey On 06.06.2014, at 14:26, WANG Siyuan wrote: > Dear, all > > I want to allocate a page at 0x38000

[edk2] How to add memory range to gMemoryMap

2014-06-06 Thread WANG Siyuan
Dear, all I want to allocate a page at 0x38000 - 0x38FFF but failed. The error log is “ConvertPages: failed to find range 38000 - 38FFF” in function CoreConvertPages (in MdeModulePkg/Core/Dxe/Mem/Page.c) I add debug message in CoreConvertPages for (Link = gMemoryMap.ForwardLink; Link != &gMe