For #1 Use AllocatePages() boot services with the type of AllocateAddress
[From UEFI Spec] AllocatePages() Summary Allocates memory pages from the system. Prototype typedef EFI_STATUS AllocatePages( IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN OUT EFI_PHYSICAL_ADDRESS*Memory ); Allocation requests of Type AllocateAddress allocate pages at the address pointed to by Memory on input. For #2, that should work. Namely the memory buffer (allocated by the UEFI driver via AllocatePages() while running on the BSP) can be accessed by the code running on the AP. Vincent From: Melwyn DSouza [mailto:mel17...@gmail.com] Sent: Friday, August 17, 2012 2:50 PM To: edk2-devel@lists.sourceforge.net Subject: [edk2] UEFI 2 questions Experts: 1. Is there a way to requested an allocation of memory where i can specify the start address? AllocateReservedZeroPool (g_reqsz); gives me the requested size. I also want to specify that it give me start address like VirtualAlloc((LPVOID) req_addr, g_reqsz, _MEM_LARGE_PAGES | MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE); I want to request a particular address for the allocated memory. How to achieve this? 2. If i allocate using AllocateReservedZeroPool in the RootApp at BSP and then Can i access this memory location from a AP thread, like moving data from the allocated memory to a CPU register in the AP thread function? Allocation is done before the starting the AP. But i want to access this allocated memory in the AP thread function. thanks, Melwyn.
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel