1 /*******************************************************************************
3 * Module Name: dbexec - debugger control method execution
5 ******************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
117 #include <contrib/dev/acpica/include/acpi.h>
118 #include <contrib/dev/acpica/include/accommon.h>
119 #include <contrib/dev/acpica/include/acdebug.h>
120 #include <contrib/dev/acpica/include/acnamesp.h>
124 #define _COMPONENT ACPI_CA_DEBUGGER
125 ACPI_MODULE_NAME ("dbexec")
128 static ACPI_DB_METHOD_INFO AcpiGbl_DbMethodInfo;
130 /* Local prototypes */
133 AcpiDbExecuteMethod (
134 ACPI_DB_METHOD_INFO *Info,
135 ACPI_BUFFER *ReturnObj);
139 ACPI_DB_METHOD_INFO *Info);
142 AcpiDbGetOutstandingAllocations (
145 static void ACPI_SYSTEM_XFACE
150 AcpiDbExecutionWalk (
151 ACPI_HANDLE ObjHandle,
157 /*******************************************************************************
159 * FUNCTION: AcpiDbExecuteMethod
161 * PARAMETERS: Info - Valid info segment
162 * ReturnObj - Where to put return object
166 * DESCRIPTION: Execute a control method.
168 ******************************************************************************/
171 AcpiDbExecuteMethod (
172 ACPI_DB_METHOD_INFO *Info,
173 ACPI_BUFFER *ReturnObj)
176 ACPI_OBJECT_LIST ParamObjects;
177 ACPI_OBJECT Params[ACPI_METHOD_NUM_ARGS];
181 ACPI_DEVICE_INFO *ObjInfo;
184 if (AcpiGbl_DbOutputToFile && !AcpiDbgLevel)
186 AcpiOsPrintf ("Warning: debug output is not enabled!\n");
189 /* Get the NS node, determines existence also */
191 Status = AcpiGetHandle (NULL, Info->Pathname, &Handle);
192 if (ACPI_FAILURE (Status))
197 /* Get the object info for number of method parameters */
199 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
200 Status = AcpiGetObjectInfo (Handle, &Buffer);
201 if (ACPI_FAILURE (Status))
206 ParamObjects.Pointer = NULL;
207 ParamObjects.Count = 0;
209 ObjInfo = Buffer.Pointer;
210 if (ObjInfo->Type == ACPI_TYPE_METHOD)
212 /* Are there arguments to the method? */
214 if (Info->Args && Info->Args[0])
216 for (i = 0; Info->Args[i] && i < ACPI_METHOD_NUM_ARGS; i++)
218 Params[i].Type = ACPI_TYPE_INTEGER;
219 Params[i].Integer.Value = ACPI_STRTOUL (Info->Args[i], NULL, 16);
222 ParamObjects.Pointer = Params;
223 ParamObjects.Count = i;
227 /* Setup default parameters */
229 for (i = 0; i < ObjInfo->ParamCount; i++)
235 Params[0].Type = ACPI_TYPE_INTEGER;
236 Params[0].Integer.Value = 0x01020304;
241 Params[1].Type = ACPI_TYPE_STRING;
242 Params[1].String.Length = 12;
243 Params[1].String.Pointer = "AML Debugger";
248 Params[i].Type = ACPI_TYPE_INTEGER;
249 Params[i].Integer.Value = i * (ACPI_INTEGER) 0x1000;
254 ParamObjects.Pointer = Params;
255 ParamObjects.Count = ObjInfo->ParamCount;
259 ACPI_FREE (Buffer.Pointer);
261 /* Prepare for a return object of arbitrary size */
263 ReturnObj->Pointer = AcpiGbl_DbBuffer;
264 ReturnObj->Length = ACPI_DEBUG_BUFFER_SIZE;
266 /* Do the actual method execution */
268 AcpiGbl_MethodExecuting = TRUE;
269 Status = AcpiEvaluateObject (NULL,
270 Info->Pathname, &ParamObjects, ReturnObj);
272 AcpiGbl_CmSingleStep = FALSE;
273 AcpiGbl_MethodExecuting = FALSE;
279 /*******************************************************************************
281 * FUNCTION: AcpiDbExecuteSetup
283 * PARAMETERS: Info - Valid method info
287 * DESCRIPTION: Setup info segment prior to method execution
289 ******************************************************************************/
293 ACPI_DB_METHOD_INFO *Info)
296 /* Catenate the current scope to the supplied name */
298 Info->Pathname[0] = 0;
299 if ((Info->Name[0] != '\\') &&
300 (Info->Name[0] != '/'))
302 ACPI_STRCAT (Info->Pathname, AcpiGbl_DbScopeBuf);
305 ACPI_STRCAT (Info->Pathname, Info->Name);
306 AcpiDbPrepNamestring (Info->Pathname);
308 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
309 AcpiOsPrintf ("Executing %s\n", Info->Pathname);
311 if (Info->Flags & EX_SINGLE_STEP)
313 AcpiGbl_CmSingleStep = TRUE;
314 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
319 /* No single step, allow redirection to a file */
321 AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT);
326 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
329 ACPI_MEMORY_LIST *Cache)
332 return (Cache->TotalAllocated - Cache->TotalFreed - Cache->CurrentDepth);
336 /*******************************************************************************
338 * FUNCTION: AcpiDbGetOutstandingAllocations
342 * RETURN: Current global allocation count minus cache entries
344 * DESCRIPTION: Determine the current number of "outstanding" allocations --
345 * those allocations that have not been freed and also are not
346 * in one of the various object caches.
348 ******************************************************************************/
351 AcpiDbGetOutstandingAllocations (
354 UINT32 Outstanding = 0;
356 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
358 Outstanding += AcpiDbGetCacheInfo (AcpiGbl_StateCache);
359 Outstanding += AcpiDbGetCacheInfo (AcpiGbl_PsNodeCache);
360 Outstanding += AcpiDbGetCacheInfo (AcpiGbl_PsNodeExtCache);
361 Outstanding += AcpiDbGetCacheInfo (AcpiGbl_OperandCache);
364 return (Outstanding);
368 /*******************************************************************************
370 * FUNCTION: AcpiDbExecutionWalk
372 * PARAMETERS: WALK_CALLBACK
376 * DESCRIPTION: Execute a control method. Name is relative to the current
379 ******************************************************************************/
382 AcpiDbExecutionWalk (
383 ACPI_HANDLE ObjHandle,
388 ACPI_OPERAND_OBJECT *ObjDesc;
389 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
390 ACPI_BUFFER ReturnObj;
394 ObjDesc = AcpiNsGetAttachedObject (Node);
395 if (ObjDesc->Method.ParamCount)
400 ReturnObj.Pointer = NULL;
401 ReturnObj.Length = ACPI_ALLOCATE_BUFFER;
403 AcpiNsPrintNodePathname (Node, "Execute");
405 /* Do the actual method execution */
408 AcpiGbl_MethodExecuting = TRUE;
410 Status = AcpiEvaluateObject (Node, NULL, NULL, &ReturnObj);
412 AcpiOsPrintf ("[%4.4s] returned %s\n", AcpiUtGetNodeName (Node),
413 AcpiFormatException (Status));
414 AcpiGbl_MethodExecuting = FALSE;
420 /*******************************************************************************
422 * FUNCTION: AcpiDbExecute
424 * PARAMETERS: Name - Name of method to execute
425 * Args - Parameters to the method
426 * Flags - single step/no single step
430 * DESCRIPTION: Execute a control method. Name is relative to the current
433 ******************************************************************************/
442 ACPI_BUFFER ReturnObj;
446 #ifdef ACPI_DEBUG_OUTPUT
447 UINT32 PreviousAllocations;
451 /* Memory allocation tracking */
453 PreviousAllocations = AcpiDbGetOutstandingAllocations ();
458 (void) AcpiWalkNamespace (ACPI_TYPE_METHOD, ACPI_ROOT_OBJECT,
459 ACPI_UINT32_MAX, AcpiDbExecutionWalk, NULL, NULL);
464 NameString = ACPI_ALLOCATE (ACPI_STRLEN (Name) + 1);
470 ACPI_MEMSET (&AcpiGbl_DbMethodInfo, 0, sizeof (ACPI_DB_METHOD_INFO));
472 ACPI_STRCPY (NameString, Name);
473 AcpiUtStrupr (NameString);
474 AcpiGbl_DbMethodInfo.Name = NameString;
475 AcpiGbl_DbMethodInfo.Args = Args;
476 AcpiGbl_DbMethodInfo.Flags = Flags;
478 ReturnObj.Pointer = NULL;
479 ReturnObj.Length = ACPI_ALLOCATE_BUFFER;
481 AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo);
482 Status = AcpiDbExecuteMethod (&AcpiGbl_DbMethodInfo, &ReturnObj);
483 ACPI_FREE (NameString);
487 * Allow any handlers in separate threads to complete.
488 * (Such as Notify handlers invoked from AML executed above).
490 AcpiOsSleep ((ACPI_INTEGER) 10);
493 #ifdef ACPI_DEBUG_OUTPUT
495 /* Memory allocation tracking */
497 Allocations = AcpiDbGetOutstandingAllocations () - PreviousAllocations;
499 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
503 AcpiOsPrintf ("Outstanding: 0x%X allocations after execution\n",
508 if (ACPI_FAILURE (Status))
510 AcpiOsPrintf ("Execution of %s failed with status %s\n",
511 AcpiGbl_DbMethodInfo.Pathname, AcpiFormatException (Status));
515 /* Display a return object, if any */
517 if (ReturnObj.Length)
519 AcpiOsPrintf ("Execution of %s returned object %p Buflen %X\n",
520 AcpiGbl_DbMethodInfo.Pathname, ReturnObj.Pointer,
521 (UINT32) ReturnObj.Length);
522 AcpiDbDumpExternalObject (ReturnObj.Pointer, 1);
526 AcpiOsPrintf ("No return object from execution of %s\n",
527 AcpiGbl_DbMethodInfo.Pathname);
531 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
535 /*******************************************************************************
537 * FUNCTION: AcpiDbMethodThread
539 * PARAMETERS: Context - Execution info segment
543 * DESCRIPTION: Debugger execute thread. Waits for a command line, then
544 * simply dispatches it.
546 ******************************************************************************/
548 static void ACPI_SYSTEM_XFACE
553 ACPI_DB_METHOD_INFO *Info = Context;
554 ACPI_DB_METHOD_INFO LocalInfo;
557 ACPI_BUFFER ReturnObj;
561 * AcpiGbl_DbMethodInfo.Arguments will be passed as method arguments.
562 * Prevent AcpiGbl_DbMethodInfo from being modified by multiple threads
565 * Note: The arguments we are passing are used by the ASL test suite
566 * (aslts). Do not change them without updating the tests.
568 (void) AcpiOsWaitSemaphore (Info->InfoGate, 1, ACPI_WAIT_FOREVER);
572 AcpiDbUInt32ToHexString (Info->NumCreated, Info->IndexOfThreadStr);
573 AcpiDbUInt32ToHexString (ACPI_TO_INTEGER (AcpiOsGetThreadId ()),
574 Info->IdOfThreadStr);
577 if (Info->Threads && (Info->NumCreated < Info->NumThreads))
579 Info->Threads[Info->NumCreated++] =
580 ACPI_TO_INTEGER (AcpiOsGetThreadId());
584 LocalInfo.Args = LocalInfo.Arguments;
585 LocalInfo.Arguments[0] = LocalInfo.NumThreadsStr;
586 LocalInfo.Arguments[1] = LocalInfo.IdOfThreadStr;
587 LocalInfo.Arguments[2] = LocalInfo.IndexOfThreadStr;
588 LocalInfo.Arguments[3] = NULL;
590 (void) AcpiOsSignalSemaphore (Info->InfoGate, 1);
592 for (i = 0; i < Info->NumLoops; i++)
594 Status = AcpiDbExecuteMethod (&LocalInfo, &ReturnObj);
595 if (ACPI_FAILURE (Status))
597 AcpiOsPrintf ("%s During execution of %s at iteration %X\n",
598 AcpiFormatException (Status), Info->Pathname, i);
599 if (Status == AE_ABORT_METHOD)
608 AcpiOsPrintf ("%d executions, Thread 0x%x\n", i, AcpiOsGetThreadId ());
611 if (ReturnObj.Length)
613 AcpiOsPrintf ("Execution of %s returned object %p Buflen %X\n",
614 Info->Pathname, ReturnObj.Pointer, (UINT32) ReturnObj.Length);
615 AcpiDbDumpExternalObject (ReturnObj.Pointer, 1);
620 /* Signal our completion */
623 (void) AcpiOsWaitSemaphore (Info->ThreadCompleteGate, 1, ACPI_WAIT_FOREVER);
624 Info->NumCompleted++;
626 if (Info->NumCompleted == Info->NumThreads)
628 /* Do signal for main thread once only */
632 (void) AcpiOsSignalSemaphore (Info->ThreadCompleteGate, 1);
636 Status = AcpiOsSignalSemaphore (Info->MainThreadGate, 1);
637 if (ACPI_FAILURE (Status))
639 AcpiOsPrintf ("Could not signal debugger thread sync semaphore, %s\n",
640 AcpiFormatException (Status));
646 /*******************************************************************************
648 * FUNCTION: AcpiDbCreateExecutionThreads
650 * PARAMETERS: NumThreadsArg - Number of threads to create
651 * NumLoopsArg - Loop count for the thread(s)
652 * MethodNameArg - Control method to execute
656 * DESCRIPTION: Create threads to execute method(s)
658 ******************************************************************************/
661 AcpiDbCreateExecutionThreads (
671 ACPI_MUTEX MainThreadGate;
672 ACPI_MUTEX ThreadCompleteGate;
676 /* Get the arguments */
678 NumThreads = ACPI_STRTOUL (NumThreadsArg, NULL, 0);
679 NumLoops = ACPI_STRTOUL (NumLoopsArg, NULL, 0);
681 if (!NumThreads || !NumLoops)
683 AcpiOsPrintf ("Bad argument: Threads %X, Loops %X\n",
684 NumThreads, NumLoops);
689 * Create the semaphore for synchronization of
690 * the created threads with the main thread.
692 Status = AcpiOsCreateSemaphore (1, 0, &MainThreadGate);
693 if (ACPI_FAILURE (Status))
695 AcpiOsPrintf ("Could not create semaphore for synchronization with the main thread, %s\n",
696 AcpiFormatException (Status));
701 * Create the semaphore for synchronization
702 * between the created threads.
704 Status = AcpiOsCreateSemaphore (1, 1, &ThreadCompleteGate);
705 if (ACPI_FAILURE (Status))
707 AcpiOsPrintf ("Could not create semaphore for synchronization between the created threads, %s\n",
708 AcpiFormatException (Status));
709 (void) AcpiOsDeleteSemaphore (MainThreadGate);
713 Status = AcpiOsCreateSemaphore (1, 1, &InfoGate);
714 if (ACPI_FAILURE (Status))
716 AcpiOsPrintf ("Could not create semaphore for synchronization of AcpiGbl_DbMethodInfo, %s\n",
717 AcpiFormatException (Status));
718 (void) AcpiOsDeleteSemaphore (ThreadCompleteGate);
719 (void) AcpiOsDeleteSemaphore (MainThreadGate);
723 ACPI_MEMSET (&AcpiGbl_DbMethodInfo, 0, sizeof (ACPI_DB_METHOD_INFO));
725 /* Array to store IDs of threads */
727 AcpiGbl_DbMethodInfo.NumThreads = NumThreads;
728 Size = 4 * AcpiGbl_DbMethodInfo.NumThreads;
729 AcpiGbl_DbMethodInfo.Threads = (UINT32 *) AcpiOsAllocate (Size);
730 if (AcpiGbl_DbMethodInfo.Threads == NULL)
732 AcpiOsPrintf ("No memory for thread IDs array\n");
733 (void) AcpiOsDeleteSemaphore (MainThreadGate);
734 (void) AcpiOsDeleteSemaphore (ThreadCompleteGate);
735 (void) AcpiOsDeleteSemaphore (InfoGate);
738 ACPI_MEMSET (AcpiGbl_DbMethodInfo.Threads, 0, Size);
740 /* Setup the context to be passed to each thread */
742 AcpiGbl_DbMethodInfo.Name = MethodNameArg;
743 AcpiGbl_DbMethodInfo.Flags = 0;
744 AcpiGbl_DbMethodInfo.NumLoops = NumLoops;
745 AcpiGbl_DbMethodInfo.MainThreadGate = MainThreadGate;
746 AcpiGbl_DbMethodInfo.ThreadCompleteGate = ThreadCompleteGate;
747 AcpiGbl_DbMethodInfo.InfoGate = InfoGate;
749 /* Init arguments to be passed to method */
751 AcpiGbl_DbMethodInfo.InitArgs = 1;
752 AcpiGbl_DbMethodInfo.Args = AcpiGbl_DbMethodInfo.Arguments;
753 AcpiGbl_DbMethodInfo.Arguments[0] = AcpiGbl_DbMethodInfo.NumThreadsStr;
754 AcpiGbl_DbMethodInfo.Arguments[1] = AcpiGbl_DbMethodInfo.IdOfThreadStr;
755 AcpiGbl_DbMethodInfo.Arguments[2] = AcpiGbl_DbMethodInfo.IndexOfThreadStr;
756 AcpiGbl_DbMethodInfo.Arguments[3] = NULL;
757 AcpiDbUInt32ToHexString (NumThreads, AcpiGbl_DbMethodInfo.NumThreadsStr);
759 AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo);
761 /* Create the threads */
763 AcpiOsPrintf ("Creating %X threads to execute %X times each\n",
764 NumThreads, NumLoops);
766 for (i = 0; i < (NumThreads); i++)
768 Status = AcpiOsExecute (OSL_DEBUGGER_THREAD, AcpiDbMethodThread,
769 &AcpiGbl_DbMethodInfo);
770 if (ACPI_FAILURE (Status))
776 /* Wait for all threads to complete */
778 (void) AcpiOsWaitSemaphore (MainThreadGate, 1, ACPI_WAIT_FOREVER);
780 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
781 AcpiOsPrintf ("All threads (%X) have completed\n", NumThreads);
782 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
784 /* Cleanup and exit */
786 (void) AcpiOsDeleteSemaphore (MainThreadGate);
787 (void) AcpiOsDeleteSemaphore (ThreadCompleteGate);
788 (void) AcpiOsDeleteSemaphore (InfoGate);
790 AcpiOsFree (AcpiGbl_DbMethodInfo.Threads);
791 AcpiGbl_DbMethodInfo.Threads = NULL;
794 #endif /* ACPI_DEBUGGER */