提交 1f8a0790 编写于 作者: V vit9696

OcAppleBootCompatLib: Use the original GetMemoryMap for VM pool

上级 33d9af06
......@@ -393,15 +393,17 @@ typedef struct OC_VMEM_CONTEXT_ {
in the end of BASE_4GB of RAM. Should be called while boot services are
still usable.
@param[out] Context Virtual memory pool context.
@param[in] NumPages Number of pages to be allocated in the pool.
@param[out] Context Virtual memory pool context.
@param[in] NumPages Number of pages to be allocated in the pool.
@param[in] GetMemoryMap Custom GetMemoryMap implementation to use, optional.
@retval EFI_SUCCESS on successful allocation.
**/
EFI_STATUS
VmAllocateMemoryPool (
OUT OC_VMEM_CONTEXT *Context,
IN UINTN NumPages
OUT OC_VMEM_CONTEXT *Context,
IN UINTN NumPages,
IN EFI_GET_MEMORY_MAP GetMemoryMap OPTIONAL
);
/**
......
......@@ -477,7 +477,8 @@ AppleMapPrepareMemoryPool (
Status = VmAllocateMemoryPool (
&BootCompat->KernelState.VmContext,
OC_DEFAULT_VMEM_PAGE_COUNT
OC_DEFAULT_VMEM_PAGE_COUNT,
BootCompat->ServicePtrs.GetMemoryMap
);
if (EFI_ERROR (Status)) {
......
......@@ -143,8 +143,9 @@ GetPhysicalAddress (
EFI_STATUS
VmAllocateMemoryPool (
OUT OC_VMEM_CONTEXT *Context,
IN UINTN NumPages
OUT OC_VMEM_CONTEXT *Context,
IN UINTN NumPages,
IN EFI_GET_MEMORY_MAP GetMemoryMap OPTIONAL
)
{
EFI_STATUS Status;
......@@ -155,7 +156,7 @@ VmAllocateMemoryPool (
EfiBootServicesData,
NumPages,
&Addr,
NULL,
GetMemoryMap,
NULL
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册