mirror of
https://github.com/acpica/acpica/
synced 2025-02-23 17:04:21 +03:00
Added external ACPI memory manager interfaces
date 2001.02.27.17.18.00; author rmoore1; state Exp;
This commit is contained in:
parent
a5417e0aef
commit
ba5d10567b
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: cmxface - External interfaces for "global" ACPI functions
|
||||
* $Revision: 1.65 $
|
||||
* $Revision: 1.66 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -535,3 +535,68 @@ AcpiFormatException (
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiAllocate
|
||||
*
|
||||
* PARAMETERS: Size - Size of the allocation
|
||||
*
|
||||
* RETURN: Address of the allocated memory on success, NULL on failure.
|
||||
*
|
||||
* DESCRIPTION: The subsystem's equivalent of malloc.
|
||||
* External front-end to the Cm* memory manager
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void *
|
||||
AcpiAllocate (
|
||||
UINT32 Size)
|
||||
{
|
||||
|
||||
return (AcpiCmAllocate (Size));
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiCallocate
|
||||
*
|
||||
* PARAMETERS: Size - Size of the allocation
|
||||
*
|
||||
* RETURN: Address of the allocated memory on success, NULL on failure.
|
||||
*
|
||||
* DESCRIPTION: The subsystem's equivalent of calloc.
|
||||
* External front-end to the Cm* memory manager
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void *
|
||||
AcpiCallocate (
|
||||
UINT32 Size)
|
||||
{
|
||||
|
||||
return (AcpiCmCallocate (Size));
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiFree
|
||||
*
|
||||
* PARAMETERS: Address - Address of the memory to deallocate
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: Frees the memory at Address
|
||||
* External front-end to the Cm* memory manager
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void
|
||||
AcpiFree (
|
||||
void *Address)
|
||||
{
|
||||
|
||||
AcpiCmFree (Address);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user