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 - 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 != &gMemoryMap; Link = 
> Link->ForwardLink) {
>       Entry = CR (Link, MEMORY_MAP, Link, MEMORY_MAP_SIGNATURE);
>       DEBUG ((DEBUG_INFO, "ConvertRange: Entry->Start==0x%lx, 
> Entry->End==0x%lx\n", Entry->Start, Entry->End));
>  
>       if (Entry->Start <= Start && Entry->End > Start) {
>         break;
>       }
>     }
> 
> The debug message is:
> ConvertRange: Entry->Start==0x86000, Entry->End==0x9FFFF
> ConvertRange: Entry->Start==0x105000, Entry->End==0x9FC02FFF
> ConvertRange: Entry->Start==0x9FC03000, Entry->End==0x9FC04FFF
> ConvertRange: Entry->Start==0x9FC05000, Entry->End==0x9FC09FFF
> ConvertRange: Entry->Start==0x9FC0A000, Entry->End==0x9FC0AFFF
> ConvertRange: Entry->Start==0x9FC0B000, Entry->End==0x9FC0BFFF
> ConvertRange: Entry->Start==0x100000000, Entry->End==0x11ED8FFFF
> ConvertRange: Entry->Start==0x11ED90000, Entry->End==0x11F400FFF
> ConvertRange: Entry->Start==0x11F401000, Entry->End==0x11F4D0FFF
> ConvertRange: Entry->Start==0x11F4D1000, Entry->End==0x11F67BFFF
> ConvertRange: Entry->Start==0x11F67C000, Entry->End==0x11F87BFFF
> ConvertRange: Entry->Start==0x11F87C000, Entry->End==0x11FA7BFFF
> ConvertRange: Entry->Start==0x11FA7C000, Entry->End==0x11FC2DFFF
> ConvertRange: Entry->Start==0x11FC2E000, Entry->End==0x11FC7BFFF
> ConvertRange: Entry->Start==0x11FC7C000, Entry->End==0x11FD68FFF
> ConvertRange: Entry->Start==0x11FD69000, Entry->End==0x11FD7BFFF
> ConvertRange: Entry->Start==0x11FD7C000, Entry->End==0x11FE5FFFF
> ConvertRange: Entry->Start==0x11FE60000, Entry->End==0x11FE7BFFF
> ConvertRange: Entry->Start==0x11FE7C000, Entry->End==0x11FFFFFFF
> ConvertPages: failed to find range 38000 - 38FFF
> 
> My question is how to add a memory range to gMemoryMap?
> Any help with this would be greatly appreciated.
> 
> 
> 
> Yours sincerely,
> WANG Siyuan
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, 
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to