summaryrefslogtreecommitdiff
path: root/source/compiler/aslcompile.c
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2017-09-01 10:38:59 -0700
committerRobert Moore <Robert.Moore@intel.com>2017-09-01 10:38:59 -0700
commit0d3a7f1d9629fc1682dbbc895f71594fc295ec09 (patch)
tree2c8d4ecfba000a034c7ecf7ecf0272c4d9a42e34 /source/compiler/aslcompile.c
parent8232c299742d82ef2e450d84a5e28a9720feca30 (diff)
downloadacpica-0d3a7f1d9629fc1682dbbc895f71594fc295ec09.tar.gz
iASL: Move all allocation functions to new modules
Memory allocation functions are in aslallocate.c Cache functions are in aslcache.c
Diffstat (limited to 'source/compiler/aslcompile.c')
-rw-r--r--source/compiler/aslcompile.c66
1 files changed, 1 insertions, 65 deletions
diff --git a/source/compiler/aslcompile.c b/source/compiler/aslcompile.c
index 385684401..1ddb8864c 100644
--- a/source/compiler/aslcompile.c
+++ b/source/compiler/aslcompile.c
@@ -150,7 +150,6 @@
*****************************************************************************/
#include "aslcompiler.h"
-#include "dtcompiler.h"
#include "acnamesp.h"
#include <stdio.h>
@@ -932,70 +931,7 @@ CmCleanupAndExit (
if (!Gbl_DoAslConversion)
{
- CmDeleteCaches ();
+ UtDeleteLocalCaches ();
}
}
-
-
-/*******************************************************************************
- *
- * FUNCTION: CmDeleteCaches
- *
- * PARAMETERS: None
- *
- * RETURN: None
- *
- * DESCRIPTION: Delete all local cache buffer blocks
- *
- ******************************************************************************/
-
-void
-CmDeleteCaches (
- void)
-{
- UINT32 BufferCount;
- ASL_CACHE_INFO *Next;
-
-
- /* Parse Op cache */
-
- BufferCount = 0;
- while (Gbl_ParseOpCacheList)
- {
- Next = Gbl_ParseOpCacheList->Next;
- ACPI_FREE (Gbl_ParseOpCacheList);
- Gbl_ParseOpCacheList = Next;
- BufferCount++;
- }
-
- DbgPrint (ASL_DEBUG_OUTPUT,
- "%u ParseOps, Buffer size: %u ops (%u bytes), %u Buffers\n",
- Gbl_ParseOpCount, ASL_PARSEOP_CACHE_SIZE,
- (sizeof (ACPI_PARSE_OBJECT) * ASL_PARSEOP_CACHE_SIZE), BufferCount);
-
- Gbl_ParseOpCount = 0;
- Gbl_ParseOpCacheNext = NULL;
- Gbl_ParseOpCacheLast = NULL;
- Gbl_ParseTreeRoot = NULL;
-
- /* Generic string cache */
-
- BufferCount = 0;
- while (Gbl_StringCacheList)
- {
- Next = Gbl_StringCacheList->Next;
- ACPI_FREE (Gbl_StringCacheList);
- Gbl_StringCacheList = Next;
- BufferCount++;
- }
-
- DbgPrint (ASL_DEBUG_OUTPUT,
- "%u Strings (%u bytes), Buffer size: %u bytes, %u Buffers\n",
- Gbl_StringCount, Gbl_StringSize, ASL_STRING_CACHE_SIZE, BufferCount);
-
- Gbl_StringSize = 0;
- Gbl_StringCount = 0;
- Gbl_StringCacheNext = NULL;
- Gbl_StringCacheLast = NULL;
-}