On Apr 11, 2014, at 3:11 AM, Youngmin Nam youngmin.nam@samsung.com wrote:
Hello Olivier and Expert,
I am trying to pass the non-contiguous physical memory map to kernel on ARMv8.
Can the UEFI pass non-contiguous physical memory area to the kernel?
Yes
I mean, Physical memory is divided into 0x80000000-0xFFFFFFFF(2GB) and 0x880000000- 0xFFFFFFFFF(30GB).
If possible, Could you explain how to describe in UEFI?
The platform passes up the info in the EFI Memory map. So that is a gBS->GetMemoryMap() call. The shell has a memmap command that dumps the data.
How to add memory regions is not defined in UEFI, but it is defined in PI.
The region is added via gDS->AddMemorySpace()
The initial map is based on EFI_HOB_TYPE_RESOURCE_DESCRIPTOR HOBs passed into the DXE Core
https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg/Core/Dxe/Gcd/Gcd... CoreInitializeGcdServices()
So platform specific code needs to build the HOB or call gDS->AddMemorySpace().
Thanks,
Andrew Fish
Otherwise, Could you let me know the reason?
Thanks,
Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel