mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-03 13:13:30 +01:00
37 lines
864 B
C
37 lines
864 B
C
|
/** @file
|
||
|
|
||
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||
|
|
||
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||
|
|
||
|
**/
|
||
|
|
||
|
#include <Uefi.h>
|
||
|
|
||
|
#include <Library/DebugLib.h>
|
||
|
#include <LockBoxLib.h>
|
||
|
|
||
|
/**
|
||
|
Allocates a buffer of type EfiACPIMemoryNVS.
|
||
|
|
||
|
Allocates the number bytes specified by AllocationSize of type
|
||
|
EfiACPIMemoryNVS and returns a pointer to the allocated buffer.
|
||
|
If AllocationSize is 0, then a valid buffer of 0 size is
|
||
|
returned. If there is not enough memory remaining to satisfy
|
||
|
the request, then NULL is returned.
|
||
|
|
||
|
@param AllocationSize The number of bytes to allocate.
|
||
|
|
||
|
@return A pointer to the allocated buffer or NULL if allocation fails.
|
||
|
|
||
|
**/
|
||
|
VOID *
|
||
|
EFIAPI
|
||
|
AllocateAcpiNvsPool (
|
||
|
IN UINTN AllocationSize
|
||
|
)
|
||
|
{
|
||
|
ASSERT_EFI_ERROR (RETURN_UNSUPPORTED);
|
||
|
return NULL;
|
||
|
}
|